mushan0x0 2 жил өмнө
parent
commit
9c05d136f5

+ 2 - 0
app/api/common.ts

@@ -43,6 +43,8 @@ export async function requestOpenai(req: NextRequest) {
     cache: "no-store",
     cache: "no-store",
     method: req.method,
     method: req.method,
     body: req.body,
     body: req.body,
+    // @ts-ignore
+    duplex: "half",
     signal: controller.signal,
     signal: controller.signal,
   };
   };