From e5d11cdb311300a3415cff6b52849ce94e44aeb3 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 25 Aug 2023 19:13:29 +0800 Subject: [PATCH] fix opanai whisper reponse tyep --- src/chatbox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 2e0b862..2bbd917 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -592,7 +592,7 @@ export default function ChatBOX(props: { body: formData, }); - const { text } = await response.json(); + const text = await response.text(); setInputMsg(inputMsg ? inputMsg + " " + text : text); } catch (error) {