fix: answer node text

This commit is contained in:
zxhlyh
2026-01-20 13:58:47 +08:00
parent 27de07e93d
commit fdaf471a03
4 changed files with 55 additions and 6 deletions

View File

@ -343,7 +343,8 @@ export const useChat = (
tool_elapsed_time,
}: any) => {
if (!isAgentMode) {
responseItem.content = responseItem.content + message
if (chunk_type === 'text')
responseItem.content = responseItem.content + message
}
else {
const lastThought = responseItem.agent_thoughts?.[responseItem.agent_thoughts?.length - 1]