fix(presets): refresh stale model IDs and backfill Hermes model lists

- Bump NewAPI universal preset to Claude 4.7 / Sonnet 4.6 / Haiku 4.5 and
  Gemini 3.1; fix opusModel mistakenly pointing to Sonnet
- Bump Gemini Native (Claude preset) to gemini-3.1-pro / gemini-3-flash
- Bump TheRouter Gemini preset to gemini-3.1-pro
- Backfill models[] + suggestedDefaults for 15 Hermes anthropic_messages
  presets:
    * Bailian For Coding: qwen3-coder-plus / qwen3-max
    * Kimi For Coding: kimi-for-coding
    * 13 third-party Claude proxies: claude-opus-4-7 / sonnet-4-6 /
      haiku-4-5-20251001
- Add Claude Haiku 4.5 entry to Hermes OpenRouter model list
This commit is contained in:
Jason
2026-04-19 17:02:06 +08:00
parent 3255b17185
commit ce5c3e5c6a
4 changed files with 132 additions and 11 deletions
+4 -4
View File
@@ -110,10 +110,10 @@ export const providerPresets: ProviderPreset[] = [
env: { env: {
ANTHROPIC_BASE_URL: "https://generativelanguage.googleapis.com", ANTHROPIC_BASE_URL: "https://generativelanguage.googleapis.com",
ANTHROPIC_API_KEY: "", ANTHROPIC_API_KEY: "",
ANTHROPIC_MODEL: "gemini-2.5-pro", ANTHROPIC_MODEL: "gemini-3.1-pro",
ANTHROPIC_DEFAULT_HAIKU_MODEL: "gemini-2.5-flash", ANTHROPIC_DEFAULT_HAIKU_MODEL: "gemini-3-flash",
ANTHROPIC_DEFAULT_SONNET_MODEL: "gemini-2.5-pro", ANTHROPIC_DEFAULT_SONNET_MODEL: "gemini-3.1-pro",
ANTHROPIC_DEFAULT_OPUS_MODEL: "gemini-2.5-pro", ANTHROPIC_DEFAULT_OPUS_MODEL: "gemini-3.1-pro",
}, },
}, },
category: "third_party", category: "third_party",
+2 -2
View File
@@ -319,11 +319,11 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
settingsConfig: { settingsConfig: {
env: { env: {
GOOGLE_GEMINI_BASE_URL: "https://api.therouter.ai", GOOGLE_GEMINI_BASE_URL: "https://api.therouter.ai",
GEMINI_MODEL: "gemini-2.5-pro", GEMINI_MODEL: "gemini-3.1-pro",
}, },
}, },
baseURL: "https://api.therouter.ai", baseURL: "https://api.therouter.ai",
model: "gemini-2.5-pro", model: "gemini-3.1-pro",
description: "TheRouter", description: "TheRouter",
category: "aggregator", category: "aggregator",
endpointCandidates: ["https://api.therouter.ai"], endpointCandidates: ["https://api.therouter.ai"],
+121
View File
@@ -145,6 +145,12 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
context_length: 200000, context_length: 200000,
max_tokens: 32000, max_tokens: 32000,
}, },
{
id: "anthropic/claude-haiku-4-5",
name: "Claude Haiku 4.5",
context_length: 200000,
max_tokens: 32000,
},
{ {
id: "openai/gpt-5.4", id: "openai/gpt-5.4",
name: "GPT-5.4", name: "GPT-5.4",
@@ -334,10 +340,17 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://coding.dashscope.aliyuncs.com/apps/anthropic", base_url: "https://coding.dashscope.aliyuncs.com/apps/anthropic",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "qwen3-coder-plus", name: "Qwen3 Coder Plus" },
{ id: "qwen3-max", name: "Qwen3 Max" },
],
}, },
category: "cn_official", category: "cn_official",
icon: "bailian", icon: "bailian",
iconColor: "#624AFF", iconColor: "#624AFF",
suggestedDefaults: {
model: { default: "qwen3-coder-plus", provider: "bailian_coding" },
},
}, },
{ {
name: "Kimi", name: "Kimi",
@@ -364,10 +377,14 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://api.kimi.com/coding/", base_url: "https://api.kimi.com/coding/",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [{ id: "kimi-for-coding", name: "Kimi For Coding" }],
}, },
category: "cn_official", category: "cn_official",
icon: "kimi", icon: "kimi",
iconColor: "#6366F1", iconColor: "#6366F1",
suggestedDefaults: {
model: { default: "kimi-for-coding", provider: "kimi_coding" },
},
}, },
{ {
name: "StepFun", name: "StepFun",
@@ -630,11 +647,19 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://www.packyapi.com", base_url: "https://www.packyapi.com",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "packycode", partnerPromotionKey: "packycode",
icon: "packycode", icon: "packycode",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "packycode" },
},
}, },
{ {
name: "Cubence", name: "Cubence",
@@ -645,12 +670,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://api.cubence.com", base_url: "https://api.cubence.com",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "cubence", partnerPromotionKey: "cubence",
icon: "cubence", icon: "cubence",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "cubence" },
},
}, },
{ {
name: "AIGoCode", name: "AIGoCode",
@@ -661,12 +694,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://api.aigocode.com", base_url: "https://api.aigocode.com",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "aigocode", partnerPromotionKey: "aigocode",
icon: "aigocode", icon: "aigocode",
iconColor: "#5B7FFF", iconColor: "#5B7FFF",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "aigocode" },
},
}, },
{ {
name: "RightCode", name: "RightCode",
@@ -677,12 +718,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://www.right.codes/claude", base_url: "https://www.right.codes/claude",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "rightcode", partnerPromotionKey: "rightcode",
icon: "rc", icon: "rc",
iconColor: "#E96B2C", iconColor: "#E96B2C",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "rightcode" },
},
}, },
{ {
name: "AICodeMirror", name: "AICodeMirror",
@@ -693,12 +742,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://api.aicodemirror.com/api/claudecode", base_url: "https://api.aicodemirror.com/api/claudecode",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "aicodemirror", partnerPromotionKey: "aicodemirror",
icon: "aicodemirror", icon: "aicodemirror",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "aicodemirror" },
},
}, },
{ {
name: "AICoding", name: "AICoding",
@@ -709,12 +766,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://api.aicoding.sh", base_url: "https://api.aicoding.sh",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "aicoding", partnerPromotionKey: "aicoding",
icon: "aicoding", icon: "aicoding",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "aicoding" },
},
}, },
{ {
name: "CrazyRouter", name: "CrazyRouter",
@@ -725,12 +790,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://crazyrouter.com", base_url: "https://crazyrouter.com",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "crazyrouter", partnerPromotionKey: "crazyrouter",
icon: "crazyrouter", icon: "crazyrouter",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "crazyrouter" },
},
}, },
{ {
name: "SSSAiCode", name: "SSSAiCode",
@@ -741,12 +814,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://node-hk.sssaicode.com/api", base_url: "https://node-hk.sssaicode.com/api",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "sssaicode", partnerPromotionKey: "sssaicode",
icon: "sssaicode", icon: "sssaicode",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "sssaicode" },
},
}, },
{ {
name: "Compshare", name: "Compshare",
@@ -779,12 +860,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://www.openclaudecode.cn", base_url: "https://www.openclaudecode.cn",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "micu", partnerPromotionKey: "micu",
icon: "micu", icon: "micu",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "micu" },
},
}, },
{ {
name: "CTok.ai", name: "CTok.ai",
@@ -795,12 +884,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://api.ctok.ai", base_url: "https://api.ctok.ai",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "ctok", partnerPromotionKey: "ctok",
icon: "ctok", icon: "ctok",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "ctok" },
},
}, },
{ {
name: "DDSHub", name: "DDSHub",
@@ -811,12 +908,20 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://www.ddshub.cc", base_url: "https://www.ddshub.cc",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "ddshub", partnerPromotionKey: "ddshub",
icon: "dds", icon: "dds",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "ddshub" },
},
}, },
{ {
name: "E-FlowCode", name: "E-FlowCode",
@@ -827,10 +932,18 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://e-flowcode.cc", base_url: "https://e-flowcode.cc",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
icon: "eflowcode", icon: "eflowcode",
iconColor: "#000000", iconColor: "#000000",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "eflowcode" },
},
}, },
{ {
name: "LionCCAPI", name: "LionCCAPI",
@@ -840,11 +953,19 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
base_url: "https://vibecodingapi.ai", base_url: "https://vibecodingapi.ai",
api_key: "", api_key: "",
api_mode: "anthropic_messages", api_mode: "anthropic_messages",
models: [
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "claude-haiku-4-5-20251001", name: "Claude Haiku 4.5" },
],
}, },
category: "third_party", category: "third_party",
isPartner: true, isPartner: true,
partnerPromotionKey: "lionccapi", partnerPromotionKey: "lionccapi",
icon: "lioncc", icon: "lioncc",
suggestedDefaults: {
model: { default: "claude-opus-4-7", provider: "lionccapi" },
},
}, },
{ {
name: "TheRouter", name: "TheRouter",
+5 -5
View File
@@ -40,17 +40,17 @@ export interface UniversalProviderPreset {
*/ */
const NEWAPI_DEFAULT_MODELS: UniversalProviderModels = { const NEWAPI_DEFAULT_MODELS: UniversalProviderModels = {
claude: { claude: {
model: "claude-sonnet-4-20250514", model: "claude-sonnet-4-6",
haikuModel: "claude-haiku-4-20250514", haikuModel: "claude-haiku-4-5-20251001",
sonnetModel: "claude-sonnet-4-20250514", sonnetModel: "claude-sonnet-4-6",
opusModel: "claude-sonnet-4-20250514", opusModel: "claude-opus-4-7",
}, },
codex: { codex: {
model: "gpt-5.4", model: "gpt-5.4",
reasoningEffort: "high", reasoningEffort: "high",
}, },
gemini: { gemini: {
model: "gemini-2.5-pro", model: "gemini-3.1-pro",
}, },
}; };