| 238 | } |
| 239 | |
| 240 | type Model struct { |
| 241 | Id string `json:"id"` |
| 242 | Tags []string `json:"tags"` |
| 243 | Created int `json:"created"` |
| 244 | Config struct { |
| 245 | Format string `json:"format"` |
| 246 | Quantization string `json:"quantization"` |
| 247 | Parameters string `json:"parameters"` |
| 248 | Architecture string `json:"architecture"` |
| 249 | Size string `json:"size"` |
| 250 | } `json:"config"` |
| 251 | } |
| 252 | |
| 253 | func (m *modelAPI) ListModels(ctx context.Context) ([]string, error) { |
| 254 | cmd := exec.CommandContext(ctx, m.path, "ls", "--json") |
nothing calls this directly
no outgoing calls
no test coverage detected