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

@@ -74,6 +74,7 @@ func (h *Handler) CreateProvider(c *gin.Context) {
BaseURL: req.BaseURL,
APIKey: req.APIKey,
Group: group,
Models: strings.Join(req.Models, ","),
}
if err := h.db.Create(&provider).Error; err != nil {