fix(headers): update X-OpenRouter-Categories to include 'productivity'

This commit is contained in:
teknium1 2026-02-28 10:38:49 -08:00
parent 1ddf8c26f5
commit 2205b22409
6 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ logger = logging.getLogger(__name__)
_OR_HEADERS = { _OR_HEADERS = {
"HTTP-Referer": "https://github.com/NousResearch/hermes-agent", "HTTP-Referer": "https://github.com/NousResearch/hermes-agent",
"X-OpenRouter-Title": "Hermes Agent", "X-OpenRouter-Title": "Hermes Agent",
"X-OpenRouter-Categories": "cli-agent", "X-OpenRouter-Categories": "productivity,cli-agent",
} }
# Nous Portal extra_body for product attribution. # Nous Portal extra_body for product attribution.

View file

@ -297,7 +297,7 @@ class AIAgent:
client_kwargs["default_headers"] = { client_kwargs["default_headers"] = {
"HTTP-Referer": "https://github.com/NousResearch/hermes-agent", "HTTP-Referer": "https://github.com/NousResearch/hermes-agent",
"X-OpenRouter-Title": "Hermes Agent", "X-OpenRouter-Title": "Hermes Agent",
"X-OpenRouter-Categories": "cli-agent", "X-OpenRouter-Categories": "productivity,cli-agent",
} }
self._client_kwargs = client_kwargs # stored for rebuilding after interrupt self._client_kwargs = client_kwargs # stored for rebuilding after interrupt

View file

@ -31,7 +31,7 @@ def get_async_client() -> AsyncOpenAI:
default_headers={ default_headers={
"HTTP-Referer": "https://github.com/NousResearch/hermes-agent", "HTTP-Referer": "https://github.com/NousResearch/hermes-agent",
"X-OpenRouter-Title": "Hermes Agent", "X-OpenRouter-Title": "Hermes Agent",
"X-OpenRouter-Categories": "cli-agent", "X-OpenRouter-Categories": "productivity,cli-agent",
}, },
) )
return _client return _client

View file

@ -39,7 +39,7 @@ if _aux_client is not None:
_async_kwargs["default_headers"] = { _async_kwargs["default_headers"] = {
"HTTP-Referer": "https://github.com/NousResearch/hermes-agent", "HTTP-Referer": "https://github.com/NousResearch/hermes-agent",
"X-OpenRouter-Title": "Hermes Agent", "X-OpenRouter-Title": "Hermes Agent",
"X-OpenRouter-Categories": "cli-agent", "X-OpenRouter-Categories": "productivity,cli-agent",
} }
_async_aux_client = AsyncOpenAI(**_async_kwargs) _async_aux_client = AsyncOpenAI(**_async_kwargs)
MAX_SESSION_CHARS = 100_000 MAX_SESSION_CHARS = 100_000

View file

@ -54,7 +54,7 @@ if _aux_sync_client is not None:
_async_kwargs["default_headers"] = { _async_kwargs["default_headers"] = {
"HTTP-Referer": "https://github.com/NousResearch/hermes-agent", "HTTP-Referer": "https://github.com/NousResearch/hermes-agent",
"X-OpenRouter-Title": "Hermes Agent", "X-OpenRouter-Title": "Hermes Agent",
"X-OpenRouter-Categories": "cli-agent", "X-OpenRouter-Categories": "productivity,cli-agent",
} }
_aux_async_client = AsyncOpenAI(**_async_kwargs) _aux_async_client = AsyncOpenAI(**_async_kwargs)

View file

@ -79,7 +79,7 @@ if _aux_sync_client is not None:
_async_kwargs["default_headers"] = { _async_kwargs["default_headers"] = {
"HTTP-Referer": "https://github.com/NousResearch/hermes-agent", "HTTP-Referer": "https://github.com/NousResearch/hermes-agent",
"X-OpenRouter-Title": "Hermes Agent", "X-OpenRouter-Title": "Hermes Agent",
"X-OpenRouter-Categories": "cli-agent", "X-OpenRouter-Categories": "productivity,cli-agent",
} }
_aux_async_client = AsyncOpenAI(**_async_kwargs) _aux_async_client = AsyncOpenAI(**_async_kwargs)