feat: add a source filter to the AI model price list - #28329
Merged
Conversation
Contributor
Docs previewCheck off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here. |
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ssncferreira
force-pushed
the
ssncf/ai-model-price-source-filter
branch
from
August 19, 2026 21:58
e90eae6 to
cdd7afa
Compare
ssncferreira
force-pushed
the
ssncf/override-ai-model-prices
branch
from
August 20, 2026 08:11
35eda94 to
ea22104
Compare
ssncferreira
force-pushed
the
ssncf/ai-model-price-source-filter
branch
from
August 20, 2026 08:11
cdd7afa to
5862168
Compare
ssncferreira
force-pushed
the
ssncf/override-ai-model-prices
branch
from
August 20, 2026 08:39
ea22104 to
979b845
Compare
ssncferreira
force-pushed
the
ssncf/ai-model-price-source-filter
branch
4 times, most recently
from
August 20, 2026 10:10
f30ae2e to
057b444
Compare
ssncferreira
force-pushed
the
ssncf/override-ai-model-prices
branch
from
August 20, 2026 10:10
979b845 to
fd661e9
Compare
ssncferreira
marked this pull request as ready for review
August 20, 2026 10:21
johnstcn
approved these changes
Aug 20, 2026
Contributor
Author
Merge activity
|
ssncferreira
changed the base branch from
ssncf/override-ai-model-prices
to
graphite-base/28329
August 20, 2026 10:37
ssncferreira
force-pushed
the
ssncf/ai-model-price-source-filter
branch
from
August 20, 2026 10:47
057b444 to
0d3b9dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
With prices from the price book and prices set through the API both in the table,
listshowed only the price in effect and gave no way to tell where it came from. There was also no way to see the price book's entry for a model that had been overridden, since the listing resolves to the custom price.This adds a
sourcecolumn to the output and a--sourcefilter for narrowing to one source, or to every row withall.Note:
--sourceselects rows rather than models. A model carrying both a price book price and a custom one appears under either value, so the two filtered listings do not sum to the unfiltered one.--source allreports both rows at once.Changes
Sourcetocodersdk.AIModelPriceandAIModelPricesFilter, and map it indb2sdk, which previously dropped it.GetAIModelPricesby source before resolution, so the price book's row for an overridden model stays reachable.allas a source, which reports every price a model holds instead of resolving to one.sourcequery parameter on the list endpoint, rejected with a 400 when outside the enum.--sourceto the list command and asourcecolumn to its output.coder exp ai-model-prices list.Closes https://linear.app/codercom/issue/AIGOV-593
Note
Initially generated by Claude Opus 5, modified and reviewed by @ssncferreira