Skip to content

Add available_providers to model_list.json#407

Merged
aswink merged 1 commit intomainfrom
aswin/03-03-add_available_providers_to_model_list.json
Mar 14, 2026
Merged

Add available_providers to model_list.json#407
aswink merged 1 commit intomainfrom
aswin/03-03-add_available_providers_to_model_list.json

Conversation

@aswink
Copy link
Contributor

@aswink aswink commented Mar 4, 2026

Without this, it's impossible to tell which models are served by which
providers, especially programmatically.

@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-proxy Ready Ready Preview, Comment Mar 12, 2026 11:04pm

Request Review

Copy link
Contributor Author

aswink commented Mar 4, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@aswink aswink mentioned this pull request Mar 4, 2026
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 4, 2026
This allows callers to specify which providers a model is available on. If
empty, then we fallback to the existing behavior.

Related to braintrustdata/braintrust-proxy#407
@aswink aswink force-pushed the aswin/03-03-update_model_list.json branch from 2314bbf to 81d7d3b Compare March 4, 2026 07:11
@aswink aswink force-pushed the aswin/03-03-add_available_providers_to_model_list.json branch from 73b5963 to 6f5ca02 Compare March 4, 2026 07:11
@aswink aswink force-pushed the aswin/03-03-update_model_list.json branch from 81d7d3b to 8ec80cf Compare March 4, 2026 07:12
@aswink aswink force-pushed the aswin/03-03-add_available_providers_to_model_list.json branch from 6f5ca02 to ff13a9a Compare March 4, 2026 07:12
Base automatically changed from aswin/03-03-update_model_list.json to main March 4, 2026 16:52
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 4, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 4, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
@aswink aswink force-pushed the aswin/03-03-add_available_providers_to_model_list.json branch from ff13a9a to d95e060 Compare March 4, 2026 23:33
@aswink aswink force-pushed the aswin/03-03-add_available_providers_to_model_list.json branch from d95e060 to 8268252 Compare March 4, 2026 23:50
@aswink aswink force-pushed the aswin/03-03-add_available_providers_to_model_list.json branch from 8268252 to fa0ba59 Compare March 4, 2026 23:52
@aswink aswink force-pushed the aswin/03-03-add_available_providers_to_model_list.json branch from fa0ba59 to 1633ab8 Compare March 5, 2026 00:00
@aswink aswink closed this Mar 5, 2026
@aswink aswink deleted the aswin/03-03-add_available_providers_to_model_list.json branch March 5, 2026 19:11
@aswink aswink restored the aswin/03-03-add_available_providers_to_model_list.json branch March 5, 2026 19:35
@aswink aswink reopened this Mar 5, 2026
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 11, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 11, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 11, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
@aswink aswink marked this pull request as ready for review March 11, 2026 21:19
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1633ab8b65

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment on lines +163 to +165
for (const p of ["gemini", "xai", "groq", "together_ai", "cerebras", "mistral", "perplexity", "databricks"]) {
if (provider === p && modelName.startsWith(p + "/")) {
return modelName.substring(p.length + 1);

Choose a reason for hiding this comment

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

P2 Badge Preserve Gemini Gemma remapping before generic prefix strip

Adding "gemini" to the generic prefix-stripping loop makes translateToBraintrust return early for every gemini/* name, so the Gemma-specific remap below never executes. In practice, inputs like provider="gemini" with modelName="gemini/gemma-2-9b-it" now map to gemma-2-9b-it instead of google/gemma-2-9b-it, which is the key format already present in model_list.json; this causes find-missing/update flows to miss existing models and can generate duplicate or stale entries.

Useful? React with 👍 / 👎.

@@ -9,7 +9,11 @@
"displayName": "GPT-5 mini",
"reasoning": true,
"max_input_tokens": 272000,
"max_output_tokens": 128000
"max_output_tokens": 128000,
"available_providers": [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was thinking that would happen naturally as we migrate from proxy to gateway

Copy link
Collaborator

@ibolmo Olmo Maldonado (ibolmo) left a comment

Choose a reason for hiding this comment

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

i would double check if there's any side effects to adding this field, but this looks reasonable

aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 12, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 12, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
@aswink aswink force-pushed the aswin/03-03-add_available_providers_to_model_list.json branch from 1633ab8 to 230f784 Compare March 12, 2026 16:26
Without this, it's impossible to tell which models are served by which
providers, especially programmatically.
@aswink aswink force-pushed the aswin/03-03-add_available_providers_to_model_list.json branch from 230f784 to 9c4928c Compare March 12, 2026 23:03
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 14, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
@aswink aswink merged commit 010e29d into main Mar 14, 2026
6 checks passed
@aswink aswink deleted the aswin/03-03-add_available_providers_to_model_list.json branch March 14, 2026 04:43
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 14, 2026
For now, the router behavior is the same as it was before, but this opens
things up for callers to choose providers when multiple are available for a
single model.

Related to braintrustdata/braintrust-proxy#407
aswink added a commit to braintrustdata/lingua that referenced this pull request Mar 14, 2026
Without this, we can only guess which providers can run a model. For
example, it's obvious that a vertex format model would run on GCP
Vertex, but what about a model like llama3? It could run on any provider.
This change adds explicit mappings from model ID -> supported providers.

This allows callers to specify which providers a model is available on. If
empty, then we fallback to the existing behavior. Also update
provider_aliases so it follows the same logic as resolve_providers,
particularly that it returns providers in the same order.

Depends on braintrustdata/braintrust-proxy#407
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants