Repository navigation
feat: scope unpriced AI models to an organization and its prices - #31752
Merged
ssncferreira merged 2 commits intoNov 13, 2026
Merged
Conversation
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 4, 2026 12:43
6e21386 to
7fe798c
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 10:53
7fe798c to
eb91267
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 11:10
eb91267 to
b0728cc
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 11:15
b0728cc to
20eacaa
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 11:27
20eacaa to
5fd78f9
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 11:32
5fd78f9 to
195e62e
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 11:38
195e62e to
45aa183
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 11:47
45aa183 to
2acf4e4
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 11:50
2acf4e4 to
8e16ebf
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 12:00
8e16ebf to
e85c847
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 12:05
e85c847 to
22ef31f
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
2 times, most recently
from
November 6, 2026 12:14
e6034d4 to
b7a54c3
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 6, 2026 15:47
b7a54c3 to
cffdd02
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
8 times, most recently
from
November 6, 2026 16:18
d635f43 to
492b2fc
Compare
ssncferreira
marked this pull request as ready for review
November 6, 2026 16:48
ssncferreira
requested review from
SasSwart,
ibetitsmike and
johnstcn
as code owners
November 6, 2026 16:48
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 11, 2026 12:54
492b2fc to
b9f855e
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 12, 2026 10:20
b9f855e to
a1038da
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 13, 2026 10:58
a1038da to
3c756d9
Compare
ssncferreira
force-pushed
the
ssncf/unpriced-models-org-scope
branch
from
November 13, 2026 12:17
3c756d9 to
1ca8010
Compare
SasSwart
reviewed
Nov 13, 2026
SasSwart
left a comment
Collaborator
There was a problem hiding this comment.
Well done. changes to request. Just a few questions for my own understanding.
SasSwart
approved these changes
Nov 13, 2026
ssncferreira
temporarily deployed
to
docs-preview
November 13, 2026 13:21 — with
GitHub Actions
Inactive
This branch was previously deployed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Scopes
GetUnpricedAIModelsto an optional organization and checks organization prices, so the unpriced models endpoint can list what an organization still needs to price. Usage is attributed to an organization through its token usage's effective group, the same as spend.Changes
organization_id: when set, only that organization's usage counts, and when null (the notification), all usage counts.ai_model_configs, live and with a price) for the provider in the usage's organization.ResourceAiModelPrice, scoped to the organization when one is given, likeGetAIModelPriceForProvider.Cases
Model X is on
anthropic-prod. Y is the model the provider reports serving for X. "Notif" is the deployment-wide notification, "UI A/B" is the endpoint for org A/B.Note: pagination will be added in a follow-up.
Related to AIGOV-730
Note
Generated by Coder Agents on behalf of @ssncferreira.