delete debug log

This commit is contained in:
duanfuxiang
2025-01-07 14:22:56 +08:00
parent 0f42ce3b80
commit cd172e371d
8 changed files with 12 additions and 32 deletions

View File

@@ -309,12 +309,6 @@ const Chat = forwardRef<ChatRef, ChatProps>((props, ref) => {
handleScrollToBottom()
}
}
// for debugging
setChatMessages((prevChatHistory) => {
const lastMessage = prevChatHistory[prevChatHistory.length - 1];
console.log("Last complete message:", lastMessage?.content);
return prevChatHistory;
});
} catch (error) {
if (error.name === 'AbortError') {
return