Download model/setup.go from AZILS/new-api: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/AZILS/new-api/resolve/main/model/setup.go
- Command line
-
hf download hf://spaces/AZILS/new-api/model/setup.go
-
curl -L -o setup.go https://huggingface.co/spaces/AZILS/new-api/resolve/main/model/setup.go
359 Bytes
| package model | |
| type Setup struct { | |
| ID uint `json:"id" gorm:"primaryKey"` | |
| Version string `json:"version" gorm:"type:varchar(50);not null"` | |
| InitializedAt int64 `json:"initialized_at" gorm:"type:bigint;not null"` | |
| } | |
| func GetSetup() *Setup { | |
| var setup Setup | |
| err := DB.First(&setup).Error | |
| if err != nil { | |
| return nil | |
| } | |
| return &setup | |
| } | |