diff --git a/ui/litellm-dashboard/src/components/agents/dynamic_agent_form_fields.tsx b/ui/litellm-dashboard/src/components/agents/dynamic_agent_form_fields.tsx index df9430f89e6..95b821595d3 100644 --- a/ui/litellm-dashboard/src/components/agents/dynamic_agent_form_fields.tsx +++ b/ui/litellm-dashboard/src/components/agents/dynamic_agent_form_fields.tsx @@ -21,16 +21,20 @@ const DynamicAgentFormFields: React.FC = ({ agentTy return ( <> - + - - + + {agentTypeInfo.credential_fields.map((field: AgentCredentialFieldMetadata) => ( @@ -38,7 +42,16 @@ const DynamicAgentFormFields: React.FC = ({ agentTy key={field.key} label={field.label} name={field.key} - rules={field.required ? [{ required: true, message: `Please enter ${field.label}` }] : undefined} + rules={ + field.required + ? [ + { + required: true, + message: t("agentsPage.dynamicAgentFormFields.credentialFieldRequired", { label: field.label }), + }, + ] + : undefined + } tooltip={field.tooltip} initialValue={field.default_value} > diff --git a/ui/litellm-dashboard/src/locales/en.json b/ui/litellm-dashboard/src/locales/en.json index 2a5203992a5..e80c21cb42d 100644 --- a/ui/litellm-dashboard/src/locales/en.json +++ b/ui/litellm-dashboard/src/locales/en.json @@ -6171,6 +6171,15 @@ "editSettingsHint": "Click \"Edit Settings\" to modify agent configuration.", "rateLimitsTitle": "Rate Limits", "saveChanges": "Save Changes" + }, + "dynamicAgentFormFields": { + "agentNameLabel": "Agent Name", + "agentNameRequired": "Please enter a unique agent name", + "agentNameTooltip": "Unique identifier for the agent", + "agentNamePlaceholder": "e.g., my-langgraph-agent", + "descriptionTooltip": "Brief description of what this agent does", + "descriptionPlaceholder": "Describe what this agent does...", + "credentialFieldRequired": "Please enter {{label}}" } } } diff --git a/ui/litellm-dashboard/src/locales/zh-CN.json b/ui/litellm-dashboard/src/locales/zh-CN.json index c210de32d64..4e6f9c724de 100644 --- a/ui/litellm-dashboard/src/locales/zh-CN.json +++ b/ui/litellm-dashboard/src/locales/zh-CN.json @@ -6171,6 +6171,15 @@ "editSettingsHint": "点击「编辑设置」修改 Agent 配置。", "rateLimitsTitle": "速率限制", "saveChanges": "保存更改" + }, + "dynamicAgentFormFields": { + "agentNameLabel": "Agent 名称", + "agentNameRequired": "请输入唯一的 Agent 名称", + "agentNameTooltip": "Agent 的唯一标识符", + "agentNamePlaceholder": "例如:my-langgraph-agent", + "descriptionTooltip": "简要描述该 Agent 的功能", + "descriptionPlaceholder": "描述该 Agent 的功能...", + "credentialFieldRequired": "请输入{{label}}" } } }