Update chatbox.tsx handle "data:{xxxx}"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user