docs: chat-completions is now a compat shim on Router, not a 404

Router shipped a minimal /v1/chat/completions compatibility surface
(translated onto Responses) after this PR was written, so the
'does not exist and 404s' wording is stale. Responses remains the
native wire — per-model reasoning-effort validation, reasoning
summaries, and prompt caching live there — so the api.router.com
host mandate is unchanged; only the comments and docs are updated.
This commit is contained in:
Neel Patel
2026-08-26 14:51:45 -04:00
committed by kshitij
parent eeb7916000
commit ca3060b70f
6 changed files with 29 additions and 18 deletions
+3 -2
View File
@@ -163,8 +163,9 @@ def _detect_api_mode_for_url(base_url: str) -> Optional[str]:
return "codex_responses"
if hostname == "api.actual.inc":
return "codex_responses"
# Ramp Router: Responses-only host — /v1/chat/completions does not
# exist and 404s (docs.router.com/api/endpoint). Mirrors the
# Ramp Router: Responses-native host — /v1/chat/completions is only a
# minimal compatibility shim, while reasoning and caching support live
# on /v1/responses (docs.router.com/api/endpoint). Mirrors the
# host_mandated_api_mode clause in hermes_cli/providers.py so the
# runtime resolver stays in lockstep. Exact hostname per #32243.
if hostname == "api.router.com":