Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: support custom prices for models in the price book - #28328

Merged
ssncferreira merged 1 commit into
mainfrom
ssncf/override-ai-model-prices
Aug 20, 2026
Merged

feat: support custom prices for models in the price book#28328
ssncferreira merged 1 commit into
mainfrom
ssncf/override-ai-model-prices

Conversation

@ssncferreira

@ssncferreira ssncferreira commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

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

  • Remove the validation that rejected models the price book covers.
  • Delete prices.IsDefaultPriced and the index behind it, which existed only for that check.
  • Generalize the coder exp ai-model-prices update help.
  • Document that a custom price overrides the price book and does not follow its updates.
  • Rework the spend approximation callout around what a custom price can and cannot correct.

Closes https://linear.app/codercom/issue/AIGOV-594

Note

Initially generated by Claude Opus 5, modified and reviewed by @ssncferreira

@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Docs preview

Check 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.

ssncferreira commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

@linear-code

linear-code Bot commented Aug 19, 2026

Copy link
Copy Markdown

AIGOV-594

@ssncferreira
ssncferreira force-pushed the ssncf/override-ai-model-prices branch from 35eda94 to ea22104 Compare August 20, 2026 08:11
@ssncferreira
ssncferreira force-pushed the ssncf/ai-model-price-source branch from 4217edb to 350bc71 Compare August 20, 2026 08:11
@ssncferreira
ssncferreira force-pushed the ssncf/override-ai-model-prices branch from ea22104 to 979b845 Compare August 20, 2026 08:39
@ssncferreira
ssncferreira marked this pull request as ready for review August 20, 2026 08:43
@ssncferreira
ssncferreira requested a review from johnstcn August 20, 2026 08:43
@ssncferreira
ssncferreira force-pushed the ssncf/override-ai-model-prices branch from 979b845 to fd661e9 Compare August 20, 2026 10:10
@ssncferreira
ssncferreira force-pushed the ssncf/ai-model-price-source branch from 350bc71 to 8e53141 Compare August 20, 2026 10:10

ssncferreira commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

  • Aug 20, 10:36 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Aug 20, 10:38 AM UTC: Graphite rebased this pull request as part of a merge.
  • Aug 20, 10:46 AM UTC: @ssncferreira merged this pull request with Graphite.

@ssncferreira
ssncferreira changed the base branch from ssncf/ai-model-price-source to graphite-base/28328 August 20, 2026 10:36
@ssncferreira
ssncferreira changed the base branch from graphite-base/28328 to main August 20, 2026 10:37
@ssncferreira
ssncferreira force-pushed the ssncf/override-ai-model-prices branch from fd661e9 to 9ac5eaa Compare August 20, 2026 10:37
@ssncferreira
ssncferreira merged commit 19d1ee9 into main Aug 20, 2026
32 checks passed
@ssncferreira
ssncferreira deleted the ssncf/override-ai-model-prices branch August 20, 2026 10:46
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants