MCPcopy Index your code
hub / github.com/docker/docker-agent / DisplayOrModel

Method DisplayOrModel

pkg/config/v7/types.go:518–520  ·  view source on GitHub ↗

DisplayOrModel returns DisplayModel if set (i.e., alias resolution preserved the original name), otherwise falls back to Model.

()

Source from the content-addressed store, hash-verified

516// DisplayOrModel returns DisplayModel if set (i.e., alias resolution preserved the original name),
517// otherwise falls back to Model.
518func (m *ModelConfig) DisplayOrModel() string {
519 return cmp.Or(m.DisplayModel, m.Model)
520}
521
522// FlexibleModelConfig wraps ModelConfig to support both shorthand and full syntax.
523// It can be unmarshaled from either:

Callers 4

IDMethod · 0.45
AvailableModelsMethod · 0.45

Calls

no outgoing calls