Преглед на файлове

fix: #2061 RequestInit TypeError

mushan0x0 преди 1 година
родител
ревизия
9c05d136f5
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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,
   };