mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-31 11:01:36 +08:00
feat(presets): sync Claude provider presets to Hermes
Import 38 Claude presets into Hermes by mapping env-style ANTHROPIC_BASE_URL/AUTH_TOKEN to flat base_url/api_key, deriving api_mode from apiFormat (anthropic_messages or chat_completions), deduping ANTHROPIC_*_MODEL into models[], and pointing suggestedDefaults at ANTHROPIC_MODEL. Skip OAuth-only presets (Codex, Copilot), Bedrock SigV4, Gemini Native, and the three already shipped on the Hermes side (OpenRouter, Anthropic, DeepSeek). Place Shengsuanyun at the head of the Hermes array so the partner shows first in the preset panel. In the Claude preset list, restore Shengsuanyun back ahead of Gemini Native. The Gemini Native preset (#1918) was inserted between Claude Official and Shengsuanyun, which made the third_party category register first in the reduce-based grouping and pushed the aggregator block (and Shengsuanyun) behind it. Backfill the missing providerForm.presets translations across zh, en, and ja (openrouter, anthropic, openai, googleai, deepseek, together; plus shengsuanyun for en and ja) so existing Hermes preset names no longer render literal i18n keys.
This commit is contained in:
@@ -795,7 +795,14 @@
|
||||
"shengsuanyun": "Shengsuanyun offers exclusive benefits for CC Switch users. New users who register via this link get ¥10 free credits and 10% bonus on first top-up!"
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "Compshare"
|
||||
"ucloud": "Compshare",
|
||||
"shengsuanyun": "Shengsuanyun",
|
||||
"openrouter": "OpenRouter",
|
||||
"anthropic": "Anthropic",
|
||||
"openai": "OpenAI",
|
||||
"googleai": "Google AI",
|
||||
"deepseek": "DeepSeek",
|
||||
"together": "Together AI"
|
||||
},
|
||||
"parameterConfig": "Parameter Config - {{name}} *",
|
||||
"mainModel": "Main Model (optional)",
|
||||
|
||||
@@ -795,7 +795,14 @@
|
||||
"shengsuanyun": "胜算云はCC Switchユーザーに特別特典を提供しています。このリンクから登録すると、10元分の無料クレジットと初回チャージ10%ボーナスがもらえます!"
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "Compshare"
|
||||
"ucloud": "Compshare",
|
||||
"shengsuanyun": "Shengsuanyun",
|
||||
"openrouter": "OpenRouter",
|
||||
"anthropic": "Anthropic",
|
||||
"openai": "OpenAI",
|
||||
"googleai": "Google AI",
|
||||
"deepseek": "DeepSeek",
|
||||
"together": "Together AI"
|
||||
},
|
||||
"parameterConfig": "パラメーター設定 - {{name}} *",
|
||||
"mainModel": "メインモデル(任意)",
|
||||
|
||||
@@ -796,7 +796,13 @@
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "优云智算",
|
||||
"shengsuanyun": "胜算云"
|
||||
"shengsuanyun": "胜算云",
|
||||
"openrouter": "OpenRouter",
|
||||
"anthropic": "Anthropic",
|
||||
"openai": "OpenAI",
|
||||
"googleai": "Google AI",
|
||||
"deepseek": "DeepSeek",
|
||||
"together": "Together AI"
|
||||
},
|
||||
"parameterConfig": "参数配置 - {{name}} *",
|
||||
"mainModel": "主模型 (可选)",
|
||||
|
||||
Reference in New Issue
Block a user