Update chatbox.tsx handle "data:{xxxx}"

This commit is contained in:
2023-06-19 20:11:09 +08:00
committed by GitHub
parent 280545c224
commit da31f32fcb

View File

@@ -54,7 +54,7 @@ export default function ChatBOX(props: {
.map((line) => line.trim())
.filter((i) => {
if (!i) return false;
if (i === "data: [DONE]") {
if (i === "data: [DONE]" || i === "data:[DONE]") {
responseDone = true;
return false;
}