"src/vscode:/vscode.git/clone" did not exist on "532171266b431448f5fead648c661c9205705b0c"
Unverified Commit 3a247717 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #822 from ggozad/fix-tags-api

Fix /api/tags for no models.
parents 08b0e04f 8c6c2cbc
...@@ -481,7 +481,7 @@ func GetModelInfo(name string) (*api.ShowResponse, error) { ...@@ -481,7 +481,7 @@ func GetModelInfo(name string) (*api.ShowResponse, error) {
} }
func ListModelsHandler(c *gin.Context) { func ListModelsHandler(c *gin.Context) {
var models []api.ModelResponse models := make([]api.ModelResponse, 0)
fp, err := GetManifestPath() fp, err := GetManifestPath()
if err != nil { if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment