Merge pull request #2064 from mushan0x0/patch-1

fix: #2061 RequestInit TypeError
This commit is contained in:
Yifei Zhang 2023-06-20 18:04:24 +08:00 committed by GitHub
commit 078b039cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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