Yifei Zhang 2 vuotta sitten
vanhempi
commit
76ef5ef9a9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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" : "",
   });
 }