GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — feat: add organization-scoped AI model prices by SasSwart · Pull Request #30690 · coder/coder Conversation
Contributor
Adds organization-scoped AI model prices as an overlay on the site-wide price catalog, so the same model can be priced differently per organization, either for every provider of a type or for one configured provider. Pricing one configured provider is the only way to price Token usage is priced by the most specific match: the organization's price for the configured provider, then its price for the provider type, then a site-wide custom price, then the price book. The requested model is still preferred over the model the provider reports. Each token usage record now stores which kind of price matched and its keys ( New experimental, AI Gateway licensed routes are Interceptions don't carry an organization yet, so the lookup passes none and only site-wide prices apply at runtime for now. Org matching is covered by database tests with explicit org IDs. The migration ( Closes AIGOV-612. Replaces #30396. Known issue: Design and decisions (from AIGOV-612)Kinds of price, in lookup order, most specific first:
Decisions
Out of scope: the UI (AIGOV-699), Terraform support for org prices (AIGOV-710), and passing the organization from interceptions into the lookup, which depends on org context work. This PR was generated by Coder Agents on behalf of @SasSwart.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAll reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This was referenced
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |