hermes-agent/gateway/platforms
ryo-solo d578b6165d fix(api_server): pop fallback model kwarg to prevent AIAgent collision
When the primary provider's auth fails (expired token / 429 quota cap),
_resolve_runtime_agent_kwargs() falls through to the fallback provider
chain, whose runtime dict carries its own 'model' key. api_server's
_create_agent then did AIAgent(model=model, **runtime_kwargs), colliding
on 'model' and 500ing every /v1/chat/completions request while a fallback
was active. Pop the runtime model and let it override the config model,
mirroring the native gateway path (_resolve_session_agent_runtime).

Salvaged from #35716 by @ryo-solo (earliest submitter); the PR's second
half (Mistral reasoning_content strip) is already handled on main and
dropped.

Co-authored-by: Hermes Agent <noreply@nousresearch.com>
2026-07-01 01:26:27 -07:00
..
qqbot
…
ADDING_A_PLATFORM.md
…
__init__.py
…
_http_client_limits.py
…
api_server.py fix(api_server): pop fallback model kwarg to prevent AIAgent collision 2026-07-01 01:26:27 -07:00
base.py fix(security): denylist ~/.hermes/mcp-tokens/ for media delivery 2026-07-01 01:20:12 -07:00
bluebubbles.py fix(bluebubbles): drop unused with=participants from chat query 2026-07-01 00:42:56 -07:00
helpers.py
…
msgraph_webhook.py
…
signal.py
…
signal_format.py
…
signal_rate_limit.py
…
webhook.py
…
weixin.py
…
whatsapp_cloud.py
…
whatsapp_common.py
…
yuanbao.py
…
yuanbao_media.py
…
yuanbao_proto.py
…
yuanbao_sticker.py
…