size=int
This commit is contained in:
parent
00f93cfb5a
commit
ff7af5667d
1 changed files with 5 additions and 1 deletions
6
main.go
6
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue