From ff7af5667d97a1dae542cf3ebc1907aa22528700 Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 24 Apr 2024 12:37:02 +0000 Subject: [PATCH] size=int --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 4636c91..67d0c94 100644 --- a/main.go +++ b/main.go @@ -23,8 +23,10 @@ type Model struct { Name string `json:"name"` Model string `json:"model"` Modified_at string `json:"modified_at"` - Size string `json:"size"` + Size int `json:"size"` Details Details `json:"details"` + Ip string `json:"ip"` + Port string `json:"port"` } type Models struct { @@ -43,6 +45,8 @@ func get_ollama_tags() Models { body, err := io.ReadAll(resp.Body) + print(string(body)) + if err != nil { fmt.Print(err.Error()) os.Exit(1)