fix(ui): remove misleading model placeholders from input fields

Clear placeholder values for model input fields to avoid suggesting specific model names that may not be applicable to all providers. This prevents user confusion when configuring different Claude providers.
This commit is contained in:
Jason
2025-11-08 08:50:15 +08:00
parent 52a7f9d313
commit 34b8aa1008
3 changed files with 10 additions and 10 deletions

View File

@@ -179,7 +179,7 @@ export function ClaudeFormFields({
onModelChange("ANTHROPIC_MODEL", e.target.value)
}
placeholder={t("providerForm.modelPlaceholder", {
defaultValue: "claude-3-7-sonnet-20250219",
defaultValue: "",
})}
autoComplete="off"
/>
@@ -200,7 +200,7 @@ export function ClaudeFormFields({
onModelChange("ANTHROPIC_DEFAULT_HAIKU_MODEL", e.target.value)
}
placeholder={t("providerForm.haikuModelPlaceholder", {
defaultValue: "GLM-4.5-Air",
defaultValue: "",
})}
autoComplete="off"
/>
@@ -224,7 +224,7 @@ export function ClaudeFormFields({
)
}
placeholder={t("providerForm.modelPlaceholder", {
defaultValue: "claude-3-7-sonnet-20250219",
defaultValue: "",
})}
autoComplete="off"
/>
@@ -245,7 +245,7 @@ export function ClaudeFormFields({
onModelChange("ANTHROPIC_DEFAULT_OPUS_MODEL", e.target.value)
}
placeholder={t("providerForm.modelPlaceholder", {
defaultValue: "claude-3-7-opus-20250219",
defaultValue: "",
})}
autoComplete="off"
/>

View File

@@ -264,9 +264,9 @@
"anthropicDefaultHaikuModel": "Default Haiku Model",
"anthropicDefaultSonnetModel": "Default Sonnet Model",
"anthropicDefaultOpusModel": "Default Opus Model",
"modelPlaceholder": "GLM-4.6",
"smallModelPlaceholder": "GLM-4.5-Air",
"haikuModelPlaceholder": "GLM-4.5-Air",
"modelPlaceholder": "",
"smallModelPlaceholder": "",
"haikuModelPlaceholder": "",
"modelHelper": "Optional: Specify default Claude model to use, leave blank to use system default.",
"categoryOfficial": "Official",
"categoryCnOfficial": "Opensource Official",

View File

@@ -264,9 +264,9 @@
"anthropicDefaultHaikuModel": "Haiku 默认模型",
"anthropicDefaultSonnetModel": "Sonnet 默认模型",
"anthropicDefaultOpusModel": "Opus 默认模型",
"modelPlaceholder": "GLM-4.6",
"smallModelPlaceholder": "GLM-4.5-Air",
"haikuModelPlaceholder": "GLM-4.5-Air",
"modelPlaceholder": "",
"smallModelPlaceholder": "",
"haikuModelPlaceholder": "",
"modelHelper": "可选:指定默认使用的 Claude 模型,留空则使用系统默认。",
"categoryOfficial": "官方",
"categoryCnOfficial": "开源官方",