The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway): auth-fallback test stub accepts the target_model kwarg the fallback resolver now passes
teknium1ba2bcfa6e790
diff --git a/tests/gateway/test_session_model_override_routing.py b/tests/gateway/test_session_model_override_routing.pyindex 41866ceb6c7..ad8b650dd5f 100644--- a/tests/gateway/test_session_model_override_routing.py+++ b/tests/gateway/test_session_model_override_routing.py@@ -104,11 +104,14 @@ fallback_providers:)monkeypatch.setattr(gateway_run, "_hermes_home", tmp_path)- def fake_resolve_runtime_provider(*, requested=None, explicit_base_url=None, explicit_api_key=None):+ def fake_resolve_runtime_provider(*, requested=None, explicit_base_url=None, explicit_api_key=None,+ target_model=None):if requested in {None, "", "openai-codex"}:from hermes_cli.auth import AuthErrorraise AuthError("No Codex credentials stored. Run `hermes auth` to authenticate.")assert requested == "openrouter"+ # The fallback rung is resolved against the model it will send, not the primary default.+ assert target_model == "minimax/minimax-m2.7"return {"api_key": "sk-openrouter","base_url": "https://openrouter.ai/api/v1",