perf: stream response (#2813)

* perf: stream response

* fold code
This commit is contained in:
Archer
2024-09-26 18:09:01 +08:00
committed by GitHub
parent aee5de29c7
commit 21ab855871
6 changed files with 66 additions and 58 deletions

View File

@@ -200,7 +200,7 @@ const ChatContextProvider = ({
);
} else {
// Chat history not exists
loadHistories();
loadHistories(true);
}
},
[histories, loadHistories, setHistories]