MCPcopy Create free account
hub / github.com/docker/compose / Model

Struct Model

pkg/compose/model.go:240–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240type 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
253func (m *modelAPI) ListModels(ctx context.Context) ([]string, error) {
254 cmd := exec.CommandContext(ctx, m.path, "ls", "--json")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected