fix: agent thought replaced by response text (#20571)

pull/20573/head
Joel 8 months ago committed by GitHub
parent d6b30efe2c
commit 744159a079
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -366,8 +366,9 @@ export const useChat = (
if (!newResponseItem)
return
const isUseAgentThought = newResponseItem.agent_thoughts?.length > 0
updateChatTreeNode(responseItem.id, {
content: newResponseItem.answer,
content: isUseAgentThought ? '' : newResponseItem.answer,
log: [
...newResponseItem.message,
...(newResponseItem.message[newResponseItem.message.length - 1].role !== 'assistant'

Loading…
Cancel
Save