From 9c05d136f5241a6c8ee16d09ee060840f6b3cfb0 Mon Sep 17 00:00:00 2001 From: mushan0x0 Date: Tue, 20 Jun 2023 11:57:31 +0800 Subject: [PATCH] fix: #2061 RequestInit TypeError --- app/api/common.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/common.ts b/app/api/common.ts index ccfb99e2..22bd5d4a 100644 --- a/app/api/common.ts +++ b/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, };