Skip to content

chore: ship prices for all AI Governance proivder types - #28102

Open
johnstcn wants to merge 2 commits into
release/2.36from
cj/r236/aigov-571
Open

chore: ship prices for all AI Governance proivder types#28102
johnstcn wants to merge 2 commits into
release/2.36from
cj/r236/aigov-571

Conversation

@johnstcn

@johnstcn johnstcn commented Aug 13, 2026

Copy link
Copy Markdown
Member

Includes the two below commits:

Note that this also requires db88ec3 (#27836) and 5efa7ab (#27923)

ℹ️ Note for reviewers: this PR may look horrible, but most of it is just JSON. You don't have to review that.

johnstcn and others added 2 commits August 13, 2026 11:20
Adds the full set of supported provider types to
`scripts/aibridgepricesgen` and updates stored model prices.

Notes:
* We need to rename a few keys from models.dev JSON to match our
internal provider types.
* `prices.json` is now marked as generated.

---------

Co-authored-by: Susana Ferreira <susana@coder.com>
(cherry picked from commit 60161fd)
Depends on #27837

Expand `curation.json` to include more known models.
Also marked `knownModelsGenerated.json` as generated.

(cherry picked from commit b169066)
Copilot AI lite review requested due to automatic review settings August 13, 2026 10:23
@linear-code

linear-code Bot commented Aug 13, 2026

Copy link
Copy Markdown

AIGOV-571

@johnstcn johnstcn self-assigned this Aug 13, 2026
@github-actions

Copy link
Copy Markdown

👋 Hey @johnstcn!

This PR is targeting the release/2.36 release branch, but its title does not start with fix: or fix(scope):.

Only bug fixes should be cherry-picked to release branches. If this is a bug fix, please update the PR title to match the conventional commit format:

fix: description of the bug fix
fix(scope): description of the bug fix

If this is not a bug fix, it likely should not target a release branch.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewer note: you can probably skip reviewing this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewer note: you can definitely skip reviewing this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewer note: this is so that prices show up automatically in the Agents UI when you add a model

@DanielleMaywood DanielleMaywood left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval for agents side of it. Will defer approval of ai gateway to @ssncferreira

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ships an expanded, generated AI model price book and frontend known-model catalog so AI Governance pricing and admin UX cover additional configured provider types beyond native OpenAI and Anthropic.

Changes:

  • Expand aibridgepricesgen to include additional provider types (Azure, Bedrock, Copilot, Google, OpenRouter, Vercel) in generated outputs.
  • Add provider-key renames in the jq patch step to align models.dev provider keys with internal ai_provider_type values.
  • Extend the ChatModelAdminPanel known-models catalog and adjust the unit test to keep “unsupported provider returns empty list” coverage.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
site/src/pages/AgentsPage/components/ChatModelAdminPanel/knownModels/knownModelsGenerated.json Regenerated known-model catalog including new provider sections and updated prices.
site/src/pages/AgentsPage/components/ChatModelAdminPanel/knownModels/index.test.ts Updates the “unsupported provider” case now that Azure is supported in the catalog.
scripts/aibridgepricesgen/overrides.jq Adds upstream provider key renames to match internal provider type names.
scripts/aibridgepricesgen/main.go Expands the set of providers included in generated pricing and catalog outputs.
scripts/aibridgepricesgen/curation.json Extends curated models across additional providers for the frontend catalog generation.
.gitattributes Marks generated AI price and catalog artifacts as linguist-generated.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ssncferreira ssncferreira left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@ssncferreira ssncferreira added the backport/v2.36 Backport PR targeting release/2.36 label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/v2.36 Backport PR targeting release/2.36

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants