mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: hide and reject chat models from disabled AI providers (#27070)
This commit is contained in:
@@ -1272,6 +1272,7 @@ type UserChatProviderConfig struct {
|
||||
Provider string `json:"provider"`
|
||||
DisplayName string `json:"display_name"`
|
||||
Icon string `json:"icon"`
|
||||
Enabled bool `json:"enabled"`
|
||||
HasUserAPIKey bool `json:"has_user_api_key"`
|
||||
HasCentralAPIKeyFallback bool `json:"has_central_api_key_fallback"`
|
||||
BYOKEnabled bool `json:"byok_enabled"`
|
||||
|
||||
Reference in New Issue
Block a user