MCPcopy
hub / github.com/docker/docker-agent / isEmbeddingModel

Function isEmbeddingModel

pkg/runtime/model_switcher.go:738–742  ·  view source on GitHub ↗

isEmbeddingModel returns true if the model is an embedding model based on its family or name fields from models.dev.

(family, name string)

Source from the content-addressed store, hash-verified

736// isEmbeddingModel returns true if the model is an embedding model
737// based on its family or name fields from models.dev.
738func isEmbeddingModel(family, name string) bool {
739 familyLower := strings.ToLower(family)
740 nameLower := strings.ToLower(name)
741 return strings.Contains(familyLower, "embed") || strings.Contains(nameLower, "embed")
742}
743
744// aliasBaseURLResolvable reports whether every environment variable referenced
745// by a (possibly templated) alias base URL is set. Aliases like Cloudflare's

Callers 4

buildDMRChoicesMethod · 0.70
TestIsEmbeddingModelFunction · 0.70
buildCatalogChoicesMethod · 0.70
buildGatewayChoicesMethod · 0.70

Calls

no outgoing calls

Tested by 1

TestIsEmbeddingModelFunction · 0.56