This commit is contained in:
Miki 2024-04-24 12:37:02 +00:00
parent 00f93cfb5a
commit ff7af5667d

View file

@ -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)