Browse Source

Merge pull request #2064 from mushan0x0/patch-1

fix: #2061 RequestInit TypeError
Yifei Zhang 1 year ago
parent
commit
078b039cf1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/api/common.ts

+ 2 - 0
app/api/common.ts

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