Timothy Jaeryang Baek 4 月之前
父节点
当前提交
49b36937ad
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/lib/components/chat/Chat.svelte

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

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