瀏覽代碼

fix: #853 fetch duplex errors

Yifei Zhang 2 年之前
父節點
當前提交
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,
   });
 }