The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
from hermes_cli import runtime_provider as rp
def test_qwen_oauth_supplied_token_keeps_the_base_url_override(monkeypatch):
"""A supplied token replaces the Qwen CLI login, not the HERMES_QWEN_BASE_URL endpoint."""
monkeypatch.setattr(rp, "_get_model_config", dict)
monkeypatch.setenv("HERMES_QWEN_BASE_URL", "https://qwen-proxy.example.test/v1/")
resolved = rp.resolve_runtime_provider(requested="qwen-oauth", explicit_api_key="fake-qwen-token")
assert (resolved["api_key"], resolved["base_url"]) == ("fake-qwen-token", "https://qwen-proxy.example.test/v1")