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
feat(ai): llm gateway calls record their serving backend in the spend ledger #474
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/featureType feature: a new function
The gateway picks a deployment for every call, but devops-cli records only the gateway as the server. Cost, latency and review quality therefore cannot be attributed to the backend that did the work. The gateway already names the deployment in every response (x-litellm-model-id, x-litellm-model-api-base), and the spend ledger's backend_info column is unused for gateway calls.
Scope & Deliverables
Context & Rationale*: The gateway picks a deployment for every call, but devops-cli records only the gateway as the server. Cost, latency and review quality therefore cannot be attributed to the backend that did the work. The gateway already names the deployment in every response (x-litellm-model-id, x-litellm-model-api-base), and the spend ledger's backend_info column is unused for gateway calls.
Deliverable*: Capture those headers in the OpenAI-compatible client (streaming included) and record them per call. Add devops ai cost --by backend. This is the input for cost from real traffic in devops ai gateway tune and for the per-backend quality baseline.
Constraint*: Providers other than the gateway leave the field empty rather than guessing.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/featureType feature: a new function
Activity
docs(roadmap): plan LLM tuning and optimization work for v0.2.23 (#483)
feat(ai): record the backend that served each gateway call in the spe…
dan-petty commentedon Sep 24, 2026
Closed by #493, 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(release): v0.2.23 (#681)