fix(web): time tool / cluster chat

This commit is contained in:
zhaoying
2025-12-26 16:01:13 +08:00
parent 30a1f2afe9
commit bf5ae25c9c
3 changed files with 8 additions and 22 deletions

View File

@@ -208,20 +208,6 @@ const Chat: FC<ChatProps> = ({ chatList, data, updateChatList, handleSave, sourc
}
return [...modelChatList]
})
updateChatList((prev: ChatData[]) => prev.map((item, index) => {
if (index === 0) {
return {
...item,
list: item.list?.map((msg, msgIndex) => {
if (msgIndex === item.list!.length - 1 && msg.role === 'assistant') {
return { ...msg, content: (msg.content || '') + content };
}
return msg;
}) || []
};
}
return item;
}))
}
const updateClusterErrorAssistantMessage = (message_length: number) => {
if (message_length > 0) return