mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
fix: answer node text
This commit is contained in:
@ -67,6 +67,7 @@ type VariableReferenceFieldsProps = {
|
||||
currentTool?: Tool | Event
|
||||
currentProvider?: ToolWithProvider | TriggerWithProvider
|
||||
isFilterFileVar?: boolean
|
||||
toolNodeId?: string
|
||||
}
|
||||
|
||||
const VariableReferenceFields: FC<VariableReferenceFieldsProps> = ({
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user