JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix:调整api_base长度至512
xiaoyao428f828cf07529
diff --git a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.tsindex 886b84bdad..78e4ed7550 100644--- a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts+++ b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts@@ -231,7 +231,7 @@ const MODEL_PROVIDER_OPTIONS = ["OpenAI", "OpenRouter", "DashScope", "SiliconFloconst REASONING_LEVEL_OPTIONS = ["", "off", "low", "medium", "high"];const MAX_MODEL_NAME_LENGTH = 100;const MAX_ALIAS_LENGTH = 100;-const MAX_API_BASE_LENGTH = 100;+const MAX_API_BASE_LENGTH = 512;const MAX_API_KEY_LENGTH = 500;type ToolSelectorState = {diff --git a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsxindex 917acecab0..887c5699d3 100644--- a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx@@ -256,7 +256,7 @@ const EVOLUTION_KEYS = new Set(["evolution_auto_scan", "skill_create"]);// 模型字段长度校验常量const MAX_MODEL_NAME_LENGTH = 100;const MAX_ALIAS_LENGTH = 100;-const MAX_API_BASE_LENGTH = 256;+const MAX_API_BASE_LENGTH = 512;const MAX_API_KEY_LENGTH = 500;// URL 格式校验函数diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.jsonindex f5eb954183..58709a6b0c 100644--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json@@ -763,7 +763,7 @@"apiBaseUrlInvalid": "API Base URL must start with http:// or https://","modelNameTooLong": "Model name is too long, please keep it under 100 characters","aliasTooLong": "Alias is too long, please keep it under 100 characters",- "apiBaseTooLong": "API Base URL is too long, please keep it under 256 characters",+ "apiBaseTooLong": "API Base URL is too long, please keep it under 512 characters","apiKeyTooLong": "API Key is too long, please keep it under 500 characters","reasoningDefault": "Use default","alias": "Alias",diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.jsonindex 9b09d3d9a2..6adac55c33 100644--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json@@ -762,7 +762,7 @@"apiBaseUrlInvalid": "API Base URL 必须以 http:// 或 https:// 开头","modelNameTooLong": "模型名称过长,请控制在 100 字符以内","aliasTooLong": "别名过长,请控制在 100 字符以内",- "apiBaseTooLong": "API Base URL 过长,请控制在 256 字符以内",+ "apiBaseTooLong": "API Base URL 过长,请控制在 512 字符以内","apiKeyTooLong": "API Key 过长,请控制在 500 字符以内","reasoningDefault": "使用默认值","alias": "别名",