Yifei Zhang 1 year ago
parent
commit
76ef5ef9a9
1 changed files with 1 additions and 1 deletions
  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" : "",
   });
 }