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

@ -67,6 +67,7 @@ type VariableReferenceFieldsProps = {
currentTool?: Tool | Event
currentProvider?: ToolWithProvider | TriggerWithProvider
isFilterFileVar?: boolean
toolNodeId?: string
}
const VariableReferenceFields: FC<VariableReferenceFieldsProps> = ({

View File

@ -286,7 +286,8 @@ export const useChat = (
tool_error,
tool_elapsed_time,
}: any) => {
responseItem.content = responseItem.content + message
if (chunk_type === 'text')
responseItem.content = responseItem.content + message
if (chunk_type === 'tool_call') {
if (!responseItem.toolCalls)