mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: widen ai_provider_type enum for chatd providers (#25394)
This commit is contained in:
@@ -19,6 +19,20 @@ type AIProviderType string
|
||||
const (
|
||||
AIProviderTypeOpenAI AIProviderType = "openai"
|
||||
AIProviderTypeAnthropic AIProviderType = "anthropic"
|
||||
// AIProviderTypeAzure, AIProviderTypeGoogle, AIProviderTypeOpenAICompat,
|
||||
// AIProviderTypeOpenrouter, and AIProviderTypeVercel route through
|
||||
// aibridge's OpenAI client today because chatd configures these
|
||||
// providers against their OpenAI-compatible endpoints. Native
|
||||
// gateway-side support arrives later without an enum change.
|
||||
AIProviderTypeAzure AIProviderType = "azure"
|
||||
AIProviderTypeGoogle AIProviderType = "google"
|
||||
AIProviderTypeOpenAICompat AIProviderType = "openai-compat"
|
||||
AIProviderTypeOpenrouter AIProviderType = "openrouter"
|
||||
AIProviderTypeVercel AIProviderType = "vercel"
|
||||
// AIProviderTypeBedrock routes through aibridge's Anthropic client
|
||||
// using the Bedrock discriminator in Settings; native support is
|
||||
// future work.
|
||||
AIProviderTypeBedrock AIProviderType = "bedrock"
|
||||
)
|
||||
|
||||
// AIProviderSettings is the discriminated container for type-specific
|
||||
|
||||
Reference in New Issue
Block a user