fix: hide and reject chat models from disabled AI providers (#27070)

This commit is contained in:
Michael Suchacz
2026-07-19 08:33:40 +02:00
committed by GitHub
parent 34ed124478
commit 9b3af629cd
23 changed files with 1127 additions and 84 deletions
+1
View File
@@ -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"`