fix: agent moderation not working (#20673)

This commit is contained in:
Novice
2025-06-05 14:56:41 +08:00
committed by GitHub
parent cb1d4748b4
commit d2d48074ba
+1 -1
View File
@@ -366,7 +366,7 @@ export const useChat = (
if (!newResponseItem)
return
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
updateChatTreeNode(responseItem.id, {
content: isUseAgentThought ? '' : newResponseItem.answer,
log: [