MCPcopy
hub / github.com/mudler/LocalAI / IsModelURL

Method IsModelURL

core/config/model_config.go:1175–1178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1173}
1174
1175func (c *ModelConfig) IsModelURL() bool {
1176 uri := downloader.URI(c.Model)
1177 return uri.LooksLikeURL()
1178}
1179
1180// ModelID returns the identifier used to reference this model across the
1181// system: the configured Name, falling back to Model when Name is empty.

Callers 1

PreloadMethod · 0.80

Calls 2

URITypeAlias · 0.92
LooksLikeURLMethod · 0.80

Tested by

no test coverage detected