diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx index 86141eb055..346cb06f93 100644 --- a/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx +++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx @@ -64,6 +64,8 @@ const ReasoningConfigForm: React.FC = ({ } const handleAutomatic = (key: string, val: any, type: FormTypeEnum) => { + if (type === FormTypeEnum.modelSelector) + return onChange({ ...value, [key]: { @@ -151,7 +153,8 @@ const ReasoningConfigForm: React.FC = ({ placeholder, options, } = schema - const auto = value[variable]?.auto + const canUseAuto = type !== FormTypeEnum.modelSelector + const auto = canUseAuto ? value[variable]?.auto : 0 const tooltipContent = (tooltip && ( = ({ )} -
handleAutomatic(variable, !auto, type)}> - {t('detailPanel.toolSelector.auto', { ns: 'plugin' })} - handleAutomatic(variable, val, type)} - /> -
+ {canUseAuto && ( +
handleAutomatic(variable, !auto, type)}> + {t('detailPanel.toolSelector.auto', { ns: 'plugin' })} + handleAutomatic(variable, val, type)} + /> +
+ )} {auto === 0 && (
diff --git a/web/app/components/workflow/skill/editor/skill-editor/tool-setting/tool-settings-section.tsx b/web/app/components/workflow/skill/editor/skill-editor/tool-setting/tool-settings-section.tsx index d7117dac0e..ef43a4f5ae 100644 --- a/web/app/components/workflow/skill/editor/skill-editor/tool-setting/tool-settings-section.tsx +++ b/web/app/components/workflow/skill/editor/skill-editor/tool-setting/tool-settings-section.tsx @@ -45,7 +45,6 @@ const ToolSettingsSection: FC = ({ const settingsFormSchemas = useMemo(() => toolParametersToFormSchemas(currentToolSettings), [currentToolSettings]) const paramsFormSchemas = useMemo(() => toolParametersToFormSchemas(currentToolParams), [currentToolParams]) - const allowReasoning = !!safeNodeId const handleSettingsFormChange = (v: Record) => { if (!value || !onChange) return @@ -71,7 +70,7 @@ const ToolSettingsSection: FC = ({ return null const showSettingsSection = currentToolSettings.length > 0 - const showParamsSection = allowReasoning && currentToolParams.length > 0 + const showParamsSection = currentToolParams.length > 0 const getVarKindType = (type: FormTypeEnum) => { if (type === FormTypeEnum.file || type === FormTypeEnum.files) return VarKindType.variable @@ -109,20 +108,9 @@ const ToolSettingsSection: FC = ({ return ( <> - {showSettingsSection && ( -
-
{t('detailPanel.toolSelector.settings', { ns: 'plugin' })}
-
- )} - {showParamsSection && ( -
-
{t('detailPanel.toolSelector.params', { ns: 'plugin' })}
-
-
{t('detailPanel.toolSelector.paramsTip1', { ns: 'plugin' })}
-
{t('detailPanel.toolSelector.paramsTip2', { ns: 'plugin' })}
-
-
- )} +
+
{t('detailPanel.toolSelector.settings', { ns: 'plugin' })}
+
{showSettingsSection && (