feat: close #118 add stop all button

This commit is contained in:
Yidadaa
2023-04-16 18:07:43 +08:00
parent bd69c8f5dd
commit dc3883ed1a
9 changed files with 48 additions and 9 deletions

View File

@@ -421,7 +421,7 @@ export const useChatStore = create<ChatStore>()(
onError(error, statusCode) {
if (statusCode === 401) {
botMessage.content = Locale.Error.Unauthorized;
} else {
} else if (!error.message.includes("aborted")) {
botMessage.content += "\n\n" + Locale.Store.Error;
}
botMessage.streaming = false;