Переглянути джерело

fix: #853 fetch duplex errors

Yifei Zhang 1 рік тому
батько
коміт
cc053b148d
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      app/api/common.ts

+ 1 - 0
app/api/common.ts

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