Files
hermes-agent/agent
kshitijk4poor 4d3555e5ca fix(models): cap -900k on custom codex_responses routes by the route's catalog
A custom endpoint with api_mode codex_responses resolved an opted-in -900k
alias from the static table only (#116329), so it got 900K even when the
gateway's own catalog publishes a lower Codex-shaped max_context_window.
For an opted-in variant the route now asks its own catalog, at its own URL
with its own key, for that cap. The proxy's context_window is still never
trusted, plain slugs make no request, and a gateway without a Codex catalog
is probed once per negative TTL rather than on every resolution.

Reported by andrexibiza on #128288.
2026-10-01 23:39:32 +05:30
..
2026-09-11 09:31:13 -07:00