mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
feat(provider): add Models field to ProviderDTO and update provider handling
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user