GO: improve model info parsing and add model_id/tenant context to list response (#16804)

This commit is contained in:
buua436
2026-07-10 13:29:01 +08:00
committed by GitHub
parent 868e524f29
commit 28340f6218
17 changed files with 661 additions and 159 deletions

View File

@@ -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