mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
fix: llm generation variable
This commit is contained in:
@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user