Explorar el Código

Merge pull request #5752 from ConnectAI-E/feat-glm

fix: ts error
Dogtiti hace 1 año
padre
commit
d66bfc6352
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/api/glm.ts

+ 1 - 1
app/api/glm.ts

@@ -22,7 +22,7 @@ export async function handle(
     return NextResponse.json({ body: "OK" }, { status: 200 });
     return NextResponse.json({ body: "OK" }, { status: 200 });
   }
   }
 
 
-  const authResult = auth(req, ModelProvider.GLM);
+  const authResult = auth(req, ModelProvider.ChatGLM);
   if (authResult.error) {
   if (authResult.error) {
     return NextResponse.json(authResult, {
     return NextResponse.json(authResult, {
       status: 401,
       status: 401,