feat(provider): add Models field to ProviderDTO and update provider handling

This commit is contained in:
2025-12-02 16:32:03 +08:00
parent d147f3ab04
commit b8bd613f77
4 changed files with 59 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ type Provider struct {
BaseURL string `json:"base_url"`
APIKey string `json:"api_key"`
Group string `gorm:"default:'default'" json:"group"` // routing group/tier
Models string `json:"models"` // comma-separated list of supported models (e.g. "gpt-4,gpt-3.5-turbo")
}
type Key struct {