Browse Source

fix: #853 fetch duplex errors

Yifei Zhang 1 year ago
parent
commit
cc053b148d
1 changed files with 1 additions and 0 deletions
  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,
   });
 }