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

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,
   });
 }