fix opanai whisper reponse tyep

This commit is contained in:
2023-08-25 19:13:29 +08:00
parent 90d72a521d
commit e5d11cdb31

View File

@@ -592,7 +592,7 @@ export default function ChatBOX(props: {
body: formData, body: formData,
}); });
const { text } = await response.json(); const text = await response.text();
setInputMsg(inputMsg ? inputMsg + " " + text : text); setInputMsg(inputMsg ? inputMsg + " " + text : text);
} catch (error) { } catch (error) {