Timothy Jaeryang Baek hai 4 meses
pai
achega
49b36937ad
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      src/lib/components/chat/Chat.svelte

+ 9 - 0
src/lib/components/chat/Chat.svelte

@@ -1569,6 +1569,15 @@
 
 			if (res) {
 				taskId = null;
+
+				const responseMessage = history.messages[history.currentId];
+				responseMessage.done = true;
+
+				history.messages[history.currentId] = responseMessage;
+
+				if (autoScroll) {
+					scrollToBottom();
+				}
 			}
 		}
 	};