refine(ui): improve model placeholders and simplify provider hints

- Add dedicated Haiku model placeholder "GLM-4.5-Air"
- Unify API key hints for all non-official providers
- Fix AiHubMix category from cn_official to aggregator
- Standardize GLM model name format (glm-4.6)
This commit is contained in:
Jason
2025-11-02 23:24:49 +08:00
parent 50eb4538ca
commit b4f10d8316
5 changed files with 13 additions and 11 deletions

View File

@@ -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"
/>

View File

@@ -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",

View File

@@ -73,7 +73,7 @@ export const codexProviderPresets: CodexProviderPreset[] = [
{
name: "AiHubMix",
websiteUrl: "https://aihubmix.com",
category: "cn_official",
category: "aggregator",
auth: generateThirdPartyAuth(""),
config: generateThirdPartyConfig(
"aihubmix",

View File

@@ -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",

View File

@@ -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": "开源官方",