Skip to content

fix(ai): classify spend vs local savings strictly by backend route - #5844

Merged
dan-petty merged 1 commit into
mainfrom
fix/5843-spend-backend-matching
Nov 15, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/5843-spend-backend-matching

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

All traffic routed to a *.local api_base counts as local savings. Requests not routed to a *.local api_base count as spend. Local models with a local/ prefix count as local tiers. Provider-prefixed models are recognized as hosted tiers.

Closes #5843

Change: openspec/changes/archive/2026-11-15-5843-spend-backend-matching/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 15, 2026
@dan-petty
dan-petty force-pushed the fix/5843-spend-backend-matching branch 2 times, most recently from a53a5cc to 49f7817 Compare November 15, 2026 15:44
…5843)

All traffic routed to a *.local api_base counts as local savings.
Requests not routed to a *.local api_base count as spend.
Local models with a local/ prefix count as local tiers.
Provider-prefixed models are recognized as hosted tiers.

Closes #5843
@dan-petty
dan-petty force-pushed the fix/5843-spend-backend-matching branch from 49f7817 to 0498121 Compare November 15, 2026 16:05
@dan-petty
dan-petty marked this pull request as ready for review November 15, 2026 16:12
@dan-petty
dan-petty merged commit 9c12814 into main Nov 15, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/5843-spend-backend-matching branch November 15, 2026 16:13
dan-petty pushed a commit that referenced this pull request Nov 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.155.0](v0.154.0...v0.155.0)
(2026-11-15)


### Features

* **github:** Hold every planned Service row
([#5848](#5848))
([bbb4426](bbb4426))
* **roadmap:** increase service alternatives check frequency
([#5846](#5846))
([e73608c](e73608c))


### Bug Fixes

* **ai:** classify spend vs local savings strictly by backend route
([#5844](#5844))
([9c12814](9c12814))
* **ai:** Retry a Jev 429 and 529 with backoff
([#5847](#5847))
([88612b6](88612b6))


### Code Refactoring

* **monitoring:** delete the home-grown dashboard builders
([#5841](#5841))
([8a6e51f](8a6e51f))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ai): classify spend vs local savings strictly by backend route

1 participant