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

Skip to content

feat: add a source filter to the AI model price list - #28329

Merged
ssncferreira merged 1 commit into
mainfrom
ssncf/ai-model-price-source-filter
Aug 20, 2026
Merged

feat: add a source filter to the AI model price list#28329
ssncferreira merged 1 commit into
mainfrom
ssncf/ai-model-price-source-filter

Conversation

@ssncferreira

@ssncferreira ssncferreira commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Description

With prices from the price book and prices set through the API both in the table, list showed 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 source column to the output and a --source filter for narrowing to one source, or to every row with all.

Note: --source selects 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 all reports both rows at once.

Changes

  • Add Source to codersdk.AIModelPrice and AIModelPricesFilter, and map it in db2sdk, which previously dropped it.
  • Filter GetAIModelPrices by source before resolution, so the price book's row for an overridden model stays reachable.
  • Accept all as a source, which reports every price a model holds instead of resolving to one.
  • Accept a source query parameter on the list endpoint, rejected with a 400 when outside the enum.
  • Add --source to the list command and a source column to its output.
  • Document the column and the filter, and lead the price section with coder exp ai-model-prices list.
  • Distinguish a deployment's default prices from the price book that ships with each release.

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

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-593

@ssncferreira
ssncferreira force-pushed the ssncf/ai-model-price-source-filter branch from e90eae6 to cdd7afa Compare August 19, 2026 21:58
@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-filter branch from cdd7afa to 5862168 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 force-pushed the ssncf/ai-model-price-source-filter branch 4 times, most recently from f30ae2e to 057b444 Compare August 20, 2026 10:10
@ssncferreira
ssncferreira force-pushed the ssncf/override-ai-model-prices branch from 979b845 to fd661e9 Compare August 20, 2026 10:10
@ssncferreira
ssncferreira marked this pull request as ready for review August 20, 2026 10:21

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:48 AM UTC: Graphite rebased this pull request as part of a merge.
  • Aug 20, 10:57 AM UTC: @ssncferreira merged this pull request with Graphite.

@ssncferreira
ssncferreira changed the base branch from ssncf/override-ai-model-prices to graphite-base/28329 August 20, 2026 10:37
@ssncferreira
ssncferreira changed the base branch from graphite-base/28329 to main August 20, 2026 10:46
@ssncferreira
ssncferreira force-pushed the ssncf/ai-model-price-source-filter branch from 057b444 to 0d3b9dc Compare August 20, 2026 10:47
@ssncferreira
ssncferreira merged commit 50ecd69 into main Aug 20, 2026
32 checks passed
@ssncferreira
ssncferreira deleted the ssncf/ai-model-price-source-filter branch August 20, 2026 10:57
@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