diff --git a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsx b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsx index f886c1b776..7c8922728b 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsx +++ b/web/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/show/field.tsx @@ -32,7 +32,7 @@ const Field: FC = ({
-
+
{hasChildren && ( = ({
{t('app.structOutput.configure')}
- {value?.schema ? ( + {(value?.schema && value.schema.properties && Object.keys(value.schema.properties).length > 0) ? ( ) : ( diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index f99fe1440b..38755a3892 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -432,7 +432,7 @@ const translation = { regenerate: 'Regenerate', apply: 'Apply', doc: 'Learn more about structured output', - resetDefaults: 'Reset Defaults', + resetDefaults: 'Reset', required: 'required', addField: 'Add Field', addChildField: 'Add Child Field', diff --git a/web/i18n/zh-Hans/app.ts b/web/i18n/zh-Hans/app.ts index ea94412ab0..7ef8c1b514 100644 --- a/web/i18n/zh-Hans/app.ts +++ b/web/i18n/zh-Hans/app.ts @@ -187,7 +187,7 @@ const translation = { LLMResponse: 'LLM 的响应', configure: '配置', notConfiguredTip: '结构化输出尚未配置', - structured: '结构化', + structured: '结构化输出', structuredTip: '结构化输出是一项功能,可确保模型始终生成符合您提供的 JSON 模式的响应', modelNotSupported: '模型不支持', modelNotSupportedTip: '当前模型不支持此功能,将自动降级为提示注入。', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index d5f3628a33..f99465d8e3 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -433,7 +433,7 @@ const translation = { regenerate: '重新生成', apply: '应用', doc: '了解有关结构化输出的更多信息', - resetDefaults: '恢复默认值', + resetDefaults: '清空配置', required: '必填', addField: '添加字段', addChildField: '添加子字段',