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

@@ -2,9 +2,10 @@ package dto
// ProviderDTO defines inbound payload for provider creation/update.
type ProviderDTO struct {
Name string `json:"name"`
Type string `json:"type"`
BaseURL string `json:"base_url"`
APIKey string `json:"api_key"`
Group string `json:"group"`
Name string `json:"name"`
Type string `json:"type"`
BaseURL string `json:"base_url"`
APIKey string `json:"api_key"`
Group string `json:"group"`
Models []string `json:"models"` // List of supported model names
}