fix(models): add Claude Sonnet 5 to curated model lists
Add claude-sonnet-5 to the static curated lists for Anthropic, OpenRouter, Nous Portal, Copilot, GMI, OpenCode Zen, and AWS Bedrock so the model appears in hermes model / /model picker discovery. Fixes #55846
This commit is contained in:
parent
e2561466c7
commit
07f39cf9a6
|
|
@ -281,6 +281,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = {
|
|||
"gpt-4o",
|
||||
"gpt-4o-mini",
|
||||
"claude-sonnet-4.6",
|
||||
"claude-sonnet-5",
|
||||
"claude-sonnet-4",
|
||||
"claude-sonnet-4.5",
|
||||
"claude-haiku-4.5",
|
||||
|
|
@ -366,6 +367,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = {
|
|||
"MiniMax-M2",
|
||||
],
|
||||
"anthropic": [
|
||||
"claude-sonnet-5",
|
||||
"claude-fable-5",
|
||||
"claude-sonnet-5",
|
||||
"claude-opus-4-8",
|
||||
|
|
@ -406,6 +408,7 @@ _PROVIDER_MODELS: dict[str, list[str]] = {
|
|||
"google/gemini-3.1-flash-lite-preview",
|
||||
"anthropic/claude-sonnet-5",
|
||||
"anthropic/claude-sonnet-4.6",
|
||||
"anthropic/claude-sonnet-5",
|
||||
"openai/gpt-5.4",
|
||||
],
|
||||
"opencode-zen": [
|
||||
|
|
|
|||
|
|
@ -976,3 +976,20 @@ class TestCodexSoftAcceptPlausibilityGate:
|
|||
r = validate_requested_model("gpt-5.5", "openai-codex")
|
||||
assert r["accepted"] is True
|
||||
assert r["recognized"] is True
|
||||
|
||||
|
||||
class TestClaudeSonnet5InCuratedLists:
|
||||
"""Regression: Claude Sonnet 5 must appear in curated model lists (#55846)."""
|
||||
|
||||
def test_anthropic_native_list_includes_sonnet_5(self):
|
||||
from hermes_cli.models import _PROVIDER_MODELS
|
||||
assert "claude-sonnet-5" in _PROVIDER_MODELS["anthropic"]
|
||||
|
||||
def test_openrouter_fallback_includes_sonnet_5(self):
|
||||
from hermes_cli.models import OPENROUTER_MODELS
|
||||
ids = [mid for mid, _ in OPENROUTER_MODELS]
|
||||
assert "anthropic/claude-sonnet-5" in ids
|
||||
|
||||
def test_nous_list_includes_sonnet_5(self):
|
||||
from hermes_cli.models import _PROVIDER_MODELS
|
||||
assert "anthropic/claude-sonnet-5" in _PROVIDER_MODELS["nous"]
|
||||
|
|
|
|||
|
|
@ -28,6 +28,10 @@
|
|||
"id": "anthropic/claude-sonnet-5",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": "anthropic/claude-sonnet-5",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": "anthropic/claude-haiku-4.5",
|
||||
"description": ""
|
||||
|
|
@ -186,6 +190,9 @@
|
|||
{
|
||||
"id": "anthropic/claude-sonnet-5"
|
||||
},
|
||||
{
|
||||
"id": "anthropic/claude-sonnet-5"
|
||||
},
|
||||
{
|
||||
"id": "anthropic/claude-haiku-4.5"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue