mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 07:10:29 +08:00
fix(provider): support editing fetched model types before save (#17728)
### Summary As title now can edit
This commit is contained in:
@@ -154,7 +154,7 @@ func (h *ProviderHandler) ListModels(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// 1. Get static models from config (may be nil when models list is empty)
|
||||
// 1. Get static models from config (maybe nil when models list is empty)
|
||||
staticModels, _ := dao.GetModelProviderManager().ListModels(providerName)
|
||||
if staticModels == nil {
|
||||
staticModels = []map[string]interface{}{}
|
||||
|
||||
Reference in New Issue
Block a user