Browse Source

fix: #853 fetch duplex errors

Yifei Zhang 2 năm trước cách đây
mục cha
commit
cc053b148d
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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,
   });
 }