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

Function modelExists

core/cli/chat/session.go:113–120  ·  view source on GitHub ↗
(models []string, name string)

Source from the content-addressed store, hash-verified

111}
112
113func modelExists(models []string, name string) bool {
114 for _, model := range models {
115 if model == name {
116 return true
117 }
118 }
119 return false
120}

Callers 2

SwitchModelMethod · 0.85
resolveChatModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected