fix(headers): update X-OpenRouter-Categories to include 'productivity'
This commit is contained in:
parent
1ddf8c26f5
commit
2205b22409
6 changed files with 6 additions and 6 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue