Yifei Zhang 1 år sedan
förälder
incheckning
76ef5ef9a9
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/api/common.ts

+ 1 - 1
app/api/common.ts

@@ -25,6 +25,6 @@ export async function requestOpenai(req: NextRequest) {
     },
     method: req.method,
     body: req.body,
-    duplex: !!req.body,
+    duplex: !!req.body ? "half" : "",
   });
 }