From 76ef5ef9a9872e1d3f30e9d201d9ac2546010156 Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Mon, 17 Apr 2023 11:34:33 +0800 Subject: [PATCH] fixup --- app/api/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/common.ts b/app/api/common.ts index 089dbf02..65870ee9 100644 --- a/app/api/common.ts +++ b/app/api/common.ts @@ -25,6 +25,6 @@ export async function requestOpenai(req: NextRequest) { }, method: req.method, body: req.body, - duplex: !!req.body, + duplex: !!req.body ? "half" : "", }); }