feat: add group AI spend endpoint - #27568
#27568Merged
Merged
Conversation
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. |
ssncferreira
force-pushed
the
ssncf/aigov-group-ai-spend
branch
3 times, most recently
from
July 28, 2026 09:49
8345374 to
bd2816d
Compare
ssncferreira
force-pushed
the
ssncf/aigov-group-ai-spend
branch
from
July 28, 2026 10:13
bd2816d to
b5548e9
Compare
ssncferreira
marked this pull request as ready for review
July 28, 2026 10:13
Contributor
Author
@mtojek you mean cherry-pick, right? Yes, I can do it 👍 |
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
Adds
GET /api/v2/groups/{group}/ai/spend, returning the AI spend limit and aggregate spend for a single group over the current budget period. The period is derived from the deployment's configured budget period rather than being caller-specified, matching the other AI spend endpoints.Changes
groupAISpendhandler and route, gated by theaigateway-cost-controlexperiment and theAIBridgefeature.GetOrganizationGroupsAISpendquery with a single group ID, so no new query or authorization path is introduced.GroupAISpendcodersdk type and client method.Closes https://linear.app/codercom/issue/AIGOV-475/implement-apiv2groupsgroupaispend
Note
Initially generated by Claude Opus 4.7, modified and reviewed by @ssncferreira