Skip to content

Commit

Permalink
Merge pull request #2064 from mushan0x0/patch-1
Browse files Browse the repository at this point in the history
fix: #2061 RequestInit TypeError
  • Loading branch information
Yidadaa authored Jun 20, 2023
2 parents daeb8a6 + 9c05d13 commit 078b039
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 078b039

Please sign in to comment.