Timothy Jaeryang Baek hace 5 meses
padre
commit
49b36937ad
Se han modificado 1 ficheros con 9 adiciones y 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();
+				}
 			}
 		}
 	};