feat: #2 add access control by

access code
This commit is contained in:
Yifei Zhang
2023-03-26 06:53:40 +00:00
parent a5b3998304
commit 2c899cf00e
16 changed files with 216 additions and 63 deletions

View File

@@ -308,6 +308,7 @@ export const useChatStore = create<ChatStore>()(
onMessage(content, done) {
if (done) {
botMessage.streaming = false;
botMessage.content = content;
get().onNewMessage(botMessage);
} else {
botMessage.content = content;