We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9d947c commit 5b7686dCopy full SHA for 5b7686d
web/app/components/base/chat/chat/hooks.ts
@@ -366,7 +366,7 @@ export const useChat = (
366
if (!newResponseItem)
367
return
368
369
- const isUseAgentThought = newResponseItem.agent_thoughts?.length > 0
+ const isUseAgentThought = newResponseItem.agent_thoughts?.length > 0 && newResponseItem.agent_thoughts[newResponseItem.agent_thoughts?.length - 1].thought === newResponseItem.answer
370
updateChatTreeNode(responseItem.id, {
371
content: isUseAgentThought ? '' : newResponseItem.answer,
372
log: [
0 commit comments