mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-11 14:15:40 +08:00
GO: improve model info parsing and add model_id/tenant context to list response (#16804)
This commit is contained in:
@@ -1282,8 +1282,9 @@ func (h *ProviderHandler) ListTenantAddedModels(c *gin.Context) {
|
||||
}
|
||||
|
||||
modelType := c.Query("type")
|
||||
ownerTenantID := c.Query("owner_tenant_id")
|
||||
|
||||
addedModels, code, err := h.modelProviderService.ListTenantAddedModels(user.ID, modelType)
|
||||
addedModels, code, err := h.modelProviderService.ListTenantAddedModels(user.ID, ownerTenantID, modelType)
|
||||
if err != nil {
|
||||
common.ErrorWithCode(c, int(code), err.Error())
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user