소스 검색

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