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
feat(web): 模型 API Key 最大长度由 500 提升至 2048 字符
openJiuwen-bot504fb78efad5
diff --git a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.tsindex 1cc48fa48c..b2536339d2 100644--- a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts+++ b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts@@ -233,7 +233,7 @@ const REASONING_LEVEL_OPTIONS = ["", "off", "low", "medium", "high"];const MAX_MODEL_NAME_LENGTH = 100;const MAX_ALIAS_LENGTH = 100;const MAX_API_BASE_LENGTH = 512;-const MAX_API_KEY_LENGTH = 500;+const MAX_API_KEY_LENGTH = 2048;type ToolSelectorState = {list: CheckboxList;diff --git a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsxindex a0a495ae3d..18182bf9e6 100644--- a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx@@ -260,7 +260,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 = 512;-const MAX_API_KEY_LENGTH = 500;+const MAX_API_KEY_LENGTH = 2048;// URL 格式校验函数function validateBaseUrl(url: string): boolean {diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.jsonindex 1d4bde2a1e..b5d8883c03 100644--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json@@ -764,7 +764,7 @@"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 512 characters",- "apiKeyTooLong": "API Key is too long, please keep it under 500 characters",+ "apiKeyTooLong": "API Key is too long, please keep it under 2048 characters","reasoningDefault": "Use default","alias": "Alias","aliasPlaceholder": "Optional, defaults to empty"diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.jsonindex 8e179ca970..a2a706035d 100644--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json@@ -763,7 +763,7 @@"modelNameTooLong": "模型名称过长,请控制在 100 字符以内","aliasTooLong": "别名过长,请控制在 100 字符以内","apiBaseTooLong": "API Base URL 过长,请控制在 512 字符以内",- "apiKeyTooLong": "API Key 过长,请控制在 500 字符以内",+ "apiKeyTooLong": "API Key 过长,请控制在 2048 字符以内","reasoningDefault": "使用默认值","alias": "别名","aliasPlaceholder": "选填,默认为空"