Changeset 0.9.3 (#53)

This commit is contained in:
2026-02-23 23:55:22 +00:00
parent ac7c7c7d59
commit 90021157e6
20 changed files with 897 additions and 414 deletions

View File

@@ -35,7 +35,10 @@ func (h *ModelHandler) ListEnabledModels(c *gin.Context) {
return
}
c.JSON(http.StatusOK, gin.H{"models": userModels})
// Include admin default model so frontend can use it in resolution chain
defaultModel, _ := h.stores.Policies.Get(c.Request.Context(), "default_model")
c.JSON(http.StatusOK, gin.H{"models": userModels, "default_model": defaultModel})
}
// ResolveModelCaps is the canonical capability resolver for any model.