Yifei Zhang преди 2 години
родител
ревизия
76ef5ef9a9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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" : "",
   });
 }