We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ff4e3 commit aeaeadaCopy full SHA for aeaeada
tools/server/webui/src/lib/stores/chat.svelte.ts
@@ -905,6 +905,10 @@ class ChatStore {
905
return;
906
}
907
908
+ // Set loading state for regeneration
909
+ this.isLoading = true;
910
+ this.currentResponse = '';
911
+
912
// Create new assistant message branch with empty content
913
const newAssistantMessage = await DatabaseService.createMessageBranch({
914
convId: this.activeConversation.id,
@@ -933,6 +937,7 @@ class ChatStore {
933
937
await this.streamChatCompletion(conversationPath, newAssistantMessage);
934
938
} catch (error) {
935
939
console.error('Failed to regenerate message with branching:', error);
940
+ this.isLoading = false;
936
941
942
943
0 commit comments