diff --git a/src/components/providers/forms/ClaudeFormFields.tsx b/src/components/providers/forms/ClaudeFormFields.tsx index 0747efc..22bb850 100644 --- a/src/components/providers/forms/ClaudeFormFields.tsx +++ b/src/components/providers/forms/ClaudeFormFields.tsx @@ -186,8 +186,8 @@ export function ClaudeFormFields({ onChange={(e) => onModelChange("ANTHROPIC_DEFAULT_HAIKU_MODEL", e.target.value) } - placeholder={t("providerForm.modelPlaceholder", { - defaultValue: "claude-3-5-haiku-20241022", + placeholder={t("providerForm.haikuModelPlaceholder", { + defaultValue: "GLM-4.5-Air", })} autoComplete="off" /> diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index eee6963..8933077 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -77,7 +77,7 @@ export const providerPresets: ProviderPreset[] = [ "https://aihubmix.com", "https://api.aihubmix.com", ], - category: "cn_official", + category: "aggregator", }, { name: "DeepSeek", @@ -101,7 +101,7 @@ export const providerPresets: ProviderPreset[] = [ env: { ANTHROPIC_BASE_URL: "https://open.bigmodel.cn/api/anthropic", ANTHROPIC_AUTH_TOKEN: "", - ANTHROPIC_MODEL: "GLM-4.6", + ANTHROPIC_MODEL: "glm-4.6", ANTHROPIC_DEFAULT_HAIKU_MODEL: "glm-4.5-air", ANTHROPIC_DEFAULT_SONNET_MODEL: "glm-4.6", ANTHROPIC_DEFAULT_OPUS_MODEL: "glm-4.6", diff --git a/src/config/codexProviderPresets.ts b/src/config/codexProviderPresets.ts index 3cd3ada..db27cf1 100644 --- a/src/config/codexProviderPresets.ts +++ b/src/config/codexProviderPresets.ts @@ -73,7 +73,7 @@ export const codexProviderPresets: CodexProviderPreset[] = [ { name: "AiHubMix", websiteUrl: "https://aihubmix.com", - category: "cn_official", + category: "aggregator", auth: generateThirdPartyAuth(""), config: generateThirdPartyConfig( "aihubmix", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 0c0ae08..e3ab942 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -232,9 +232,9 @@ "codexOfficialNoApiKey": "Official does not require API Key, save directly", "codexApiKeyAutoFill": "Just fill in here, auth.json below will be auto-filled", "apiKeyAutoFill": "Just fill in here, config below will be auto-filled", - "cnOfficialApiKeyHint": "💡 Opensource official providers only need API Key, endpoint is preset", - "aggregatorApiKeyHint": "💡 Aggregator providers only need API Key to use", - "thirdPartyApiKeyHint": "💡 Third-party providers require both API Key and endpoint", + "cnOfficialApiKeyHint": "💡 Only need to fill in API Key, endpoint is preset", + "aggregatorApiKeyHint": "💡 Only need to fill in API Key, endpoint is preset", + "thirdPartyApiKeyHint": "💡 Only need to fill in API Key, endpoint is preset", "customApiKeyHint": "💡 Custom configuration requires manually filling all necessary fields", "officialHint": "💡 Official provider uses browser login, no API Key needed", "getApiKey": "Get API Key", @@ -263,6 +263,7 @@ "anthropicDefaultOpusModel": "Default Opus Model", "modelPlaceholder": "GLM-4.6", "smallModelPlaceholder": "GLM-4.5-Air", + "haikuModelPlaceholder": "GLM-4.5-Air", "modelHelper": "Optional: Specify default Claude model to use, leave blank to use system default.", "categoryOfficial": "Official", "categoryCnOfficial": "Opensource Official", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 29e849a..66016e3 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -232,9 +232,9 @@ "codexOfficialNoApiKey": "官方无需填写 API Key,直接保存即可", "codexApiKeyAutoFill": "只需要填这里,下方 auth.json 会自动填充", "apiKeyAutoFill": "只需要填这里,下方配置会自动填充", - "cnOfficialApiKeyHint": "💡 开源官方供应商只需填写 API Key,请求地址已预设", - "aggregatorApiKeyHint": "💡 聚合服务供应商只需填写 API Key 即可使用", - "thirdPartyApiKeyHint": "💡 第三方供应商需要填写 API Key 和请求地址", + "cnOfficialApiKeyHint": "💡 只需填写 API Key,请求地址已预设", + "aggregatorApiKeyHint": "💡 只需填写 API Key,请求地址已预设", + "thirdPartyApiKeyHint": "💡 只需填写 API Key,请求地址已预设", "customApiKeyHint": "💡 自定义配置需手动填写所有必要字段", "officialHint": "💡 官方供应商使用浏览器登录,无需配置 API Key", "getApiKey": "获取 API Key", @@ -263,6 +263,7 @@ "anthropicDefaultOpusModel": "Opus 默认模型", "modelPlaceholder": "GLM-4.6", "smallModelPlaceholder": "GLM-4.5-Air", + "haikuModelPlaceholder": "GLM-4.5-Air", "modelHelper": "可选:指定默认使用的 Claude 模型,留空则使用系统默认。", "categoryOfficial": "官方", "categoryCnOfficial": "开源官方",