You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ai): devops ai gateway routes/status never send the API key, so an authenticated gateway always looks empty #469
priority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/bugType bug: the code does not do what it must
_fetch_remote_routes (src/devops_cli/ai/gateway.py) queries {gateway_url}/model/info, then /models, without an Authorization header. A LiteLLM gateway with a master key answers both with 401. The function returns None and the CLI falls back to the built-in default routes, so devops ai gateway routes (and the ai_gateway_routes MCP tool) show routes that do not exist instead of the gateway's real ones, and say nothing about the failure.
Expected
Gateway queries send the configured AI API key (DEVOPS_CLI_AI_API_KEY or the keyring) as a bearer token when one is set.
A 401 or 403 is reported as a credentials problem, naming the key's sources, instead of falling back silently to the default routes.
Acceptance criteria
devops ai gateway routes lists the live gateway's deployments when the key is set.
Without a key, it says the gateway needs one.
Tests cover authenticated discovery and the 401 path.
priority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/bugType bug: the code does not do what it must
Activity
fix(ai): authenticate gateway route discovery and query the configure…
dan-petty commentedon Sep 24, 2026
Closed by #471, merged into
release/v0.2.23.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(ai): devops ai gateway tune measures capacity and cost per backe…
feat(ai): devops ai gateway tune measures capacity and cost per backe…
feat(release): v0.2.23 (#681)