feat: route extra ai_provider_types through OpenAI and Anthropic providers (#25722)

_Disclosure:_ _produced_ _with_ _Claude_ _Opus_ _4\.7_

AI Gateway only supports Anthropic (+Bedrock), OpenAI, and Copilot providers at present. All other types (Vercel, Gemini, etc) will be mapped to OpenAI since they support OpenAI-compatible endpoints.
This commit is contained in:
Danny Kopping
2026-05-27 16:16:05 +02:00
committed by GitHub
parent 6f06ace949
commit 2770bdc9d1
13 changed files with 243 additions and 64 deletions
+3 -1
View File
@@ -4684,7 +4684,9 @@ type AIBridgeBedrockConfig struct {
// CODER_AIBRIDGE_PROVIDER_<N>_<KEY> is also accepted as a deprecated alias.
// This follows the same indexed pattern as ExternalAuthConfig.
type AIProviderConfig struct {
// Type is the provider type: "openai", "anthropic", or "copilot".
// Type is the provider type. Valid values are: "openai",
// "anthropic", "azure", "bedrock", "google", "openai-compat",
// "openrouter", "vercel", "copilot".
Type string `json:"type"`
// Name is the unique instance identifier used for routing.
// Defaults to Type if not provided.