The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(providers): send Hermes-Agent User-Agent on Router requests
Neel Patelceb54f5a52ba
diff --git a/plugins/model-providers/router/__init__.py b/plugins/model-providers/router/__init__.pyindex d197a57a9c7..9793fe0bc91 100644--- a/plugins/model-providers/router/__init__.py+++ b/plugins/model-providers/router/__init__.py@@ -48,6 +48,7 @@ import timefrom pathlib import Pathfrom typing import Any, Optional+from hermes_cli import __version__ as _HERMES_VERSIONfrom providers import register_providerfrom providers.base import ProviderProfile, _profile_user_agent@@ -341,6 +342,10 @@ router = RouterProfile(env_vars=("RAMP_ROUTER_API_KEY", "ROUTER_API_KEY", "RAMP_ROUTER_BASE_URL"),base_url=_base_url(),auth_type="api_key",+ # Identify Hermes traffic to the gateway (Router attributes coding-agent+ # clients by User-Agent prefix, the way it already recognizes OpenCode's+ # versioned UA) — and Router's WAF rejects blank/default client UAs.+ default_headers={"User-Agent": f"Hermes-Agent/{_HERMES_VERSION}"},# Most of the catalog's frontier routes accept image input; capability is# still model-dependent and governed by the live catalog.supports_vision=True,