Repository navigation
fix(ai): a hosted gateway call is priced, not counted local - #3663
Conversation
A hosted gateway group sets no api_base, so its reply names a deployment model and no backend. is_local now treats such a reply of the gateway provider as hosted, and the lifetime report groups the served usage by the deployment model. The warning for an unpriced hosted model names the command that sets a price. Refs #3656
|
Fail-to-pass: The 8 tests: Full local gate ( What this does not do: it sets no price for Ledger rows that were written before this change keep the source |
|
Scope note. This pull request fixes the calls whose gateway reply names a deployment model: the |
🤖 I have created a release *beep* *boop* --- ## [0.62.7](v0.62.6...v0.62.7) (2026-11-05) ### Bug Fixes * **ai:** a hosted gateway call is priced, not counted local ([#3663](#3663)) ([acdc8a9](acdc8a9)) * **roadmap:** plan-check measures each task group ([#3669](#3669)) ([3791bd9](3791bd9)) * **roadmap:** the jobs trust the items of the two bots ([#3664](#3664)) ([41a362d](41a362d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
A call to a hosted gateway group (claude-sonnet-5-5, claude-haiku-5-5, deepseek-v4.1-flash-1017) was recorded as a local call at $0, and its tokens counted as local savings. The hosted groups set no api_base, so the gateway reply names a deployment model and no backend, and is_local judged the call by the gateway host, a local host. A reply of the gateway provider that names a deployment model and no backend is now hosted, and the lifetime report groups the served usage by the deployment model. Claude and Gemini calls are now priced by genai-prices. genai-prices holds no price for deepseek-v4.1-flash-1017, so the warning for an unpriced hosted model now names the command devops ai cost set-price. Rows written before this change keep the source local.
Closes #3656
Change:
openspec/changes/archive/2026-11-05-3656-hosted-gateway-priced-local/