diff --git a/tests/test_openrouter_provider.py b/tests/test_openrouter_provider.py index bc67d75..b7cff4c 100644 --- a/tests/test_openrouter_provider.py +++ b/tests/test_openrouter_provider.py @@ -313,6 +313,16 @@ class TestOpenRouterRegistry: assert caps.model_name == "anthropic/claude-opus-4.5" assert caps.context_window == 200000 # Claude's context window + # Test using full model name for 4.5 + caps = registry.get_capabilities("anthropic/claude-opus-4.5") + assert caps is not None + assert caps.model_name == "anthropic/claude-opus-4.5" + + # Test opus4.5 alias + caps = registry.get_capabilities("opus4.5") + assert caps is not None + assert caps.model_name == "anthropic/claude-opus-4.5" + # Test using full model name for 4.1 caps = registry.get_capabilities("anthropic/claude-opus-4.1") assert caps is not None diff --git a/tests/test_openrouter_registry.py b/tests/test_openrouter_registry.py index 936d60f..1194106 100644 --- a/tests/test_openrouter_registry.py +++ b/tests/test_openrouter_registry.py @@ -90,6 +90,7 @@ class TestOpenRouterModelRegistry: test_cases = [ ("opus", "anthropic/claude-opus-4.5"), # opus now points to 4.5 ("OPUS", "anthropic/claude-opus-4.5"), # Case insensitive + ("claude-opus", "anthropic/claude-opus-4.5"), ("opus4.5", "anthropic/claude-opus-4.5"), ("opus4.1", "anthropic/claude-opus-4.1"), # 4.1 still accessible ("sonnet", "anthropic/claude-sonnet-4.5"),