Skip to content

Commit b154f76

Browse files
committed
fix: expand gateway supported providers based on Vercel AI Gateway docs
Add xai and bedrock to supported providers list. The Vercel AI Gateway supports OpenAI, Anthropic, Google, xAI, Amazon Bedrock, and others. Excluded providers: - ollama: Local-only, not routable through cloud gateway - openrouter: Already a gateway/aggregator
1 parent 7ded9ad commit b154f76

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/browser/hooks/useGatewayModels.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ const GATEWAY_AVAILABLE_KEY = "gateway-available";
77

88
/**
99
* Providers that Mux Gateway supports routing to.
10+
* Based on Vercel AI Gateway supported providers.
1011
* Only models from these providers can use the gateway toggle.
12+
*
13+
* Excluded:
14+
* - ollama: Local-only provider, not routable through cloud gateway
15+
* - openrouter: Already a gateway/aggregator, routing through another gateway is redundant
16+
* - mux-gateway: Already gateway format
1117
*/
12-
const GATEWAY_SUPPORTED_PROVIDERS = new Set(["anthropic", "openai", "google"]);
18+
const GATEWAY_SUPPORTED_PROVIDERS = new Set(["anthropic", "openai", "google", "xai", "bedrock"]);
1319

1420
/**
1521
* Check if a model's provider is supported by Mux Gateway.

0 commit comments

Comments
 (0)