diff --git a/server/routes.go b/server/routes.go index 637ba49f..c02ca3ed 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()})