Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
When the .ollama folder is broken or there are no models return an empty list on /api/tags
Yiorgis Gozadinos8c6c2cbc8cd2
diff --git a/server/routes.go b/server/routes.goindex 637ba49f0..c02ca3ed0 100644--- a/server/routes.go+++ b/server/routes.go@@ -481,7 +481,7 @@ func GetModelInfo(name string) (*api.ShowResponse, error) {}func ListModelsHandler(c *gin.Context) {- var models []api.ModelResponse+ models := make([]api.ModelResponse, 0)fp, err := GetManifestPath()if err != nil {c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})