feat: support custom prices for models in the price book - #28328
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/override-ai-model-prices
branch
from
August 20, 2026 08:11
35eda94 to
ea22104
Compare
ssncferreira
force-pushed
the
ssncf/ai-model-price-source
branch
from
August 20, 2026 08:11
4217edb to
350bc71
Compare
ssncferreira
force-pushed
the
ssncf/override-ai-model-prices
branch
from
August 20, 2026 08:39
ea22104 to
979b845
Compare
ssncferreira
marked this pull request as ready for review
August 20, 2026 08:43
johnstcn
approved these changes
Aug 20, 2026
ssncferreira
force-pushed
the
ssncf/override-ai-model-prices
branch
from
August 20, 2026 10:10
979b845 to
fd661e9
Compare
ssncferreira
force-pushed
the
ssncf/ai-model-price-source
branch
from
August 20, 2026 10:10
350bc71 to
8e53141
Compare
Contributor
Author
Merge activity
|
ssncferreira
changed the base branch from
ssncf/ai-model-price-source
to
graphite-base/28328
August 20, 2026 10:36
ssncferreira
force-pushed
the
ssncf/override-ai-model-prices
branch
from
August 20, 2026 10:37
fd661e9 to
9ac5eaa
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
The experimental CLI could only price models the price book does not cover, so an operator with a negotiated rate for a model Coder already prices had no way to record it. The restriction existed because a single row served both the price book and prices set through the API, and the startup seeder would overwrite an override on the next restart.
Each source now keeps its own row (#28204), so that no longer applies. This removes the restriction: a price set through the CLI takes effect over the price book for any model, and the book stays underneath it.
Changes
prices.IsDefaultPricedand the index behind it, which existed only for that check.coder exp ai-model-prices updatehelp.Closes https://linear.app/codercom/issue/AIGOV-594
Note
Initially generated by Claude Opus 5, modified and reviewed by @ssncferreira