fix: llm generation variable

This commit is contained in:
zxhlyh
2026-01-21 14:56:49 +08:00
parent b0a059250a
commit e85b0c49d8
3 changed files with 41 additions and 10 deletions

View File

@ -320,6 +320,28 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
)}
>
<>
<VarItem
name="generation"
type="object"
description={t(`${i18nPrefix}.outputVars.generation`, { ns: 'workflow' })}
subItems={[
{
name: 'content',
type: 'string',
description: '',
},
{
name: 'reasoning_content',
type: 'array[string]',
description: '',
},
{
name: 'tool_calls',
type: 'array[object]',
description: '',
},
]}
/>
<VarItem
name="text"
type="string"
@ -335,11 +357,6 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
type="object"
description={t(`${i18nPrefix}.outputVars.usage`, { ns: 'workflow' })}
/>
<VarItem
name="generation"
type="object"
description={t(`${i18nPrefix}.outputVars.generation`, { ns: 'workflow' })}
/>
{inputs.structured_output_enabled && (
<>
<Split className="mt-3" />