MCPcopy Index your code
hub / github.com/mudler/LocalAI / existsInModelPath

Method existsInModelPath

core/templates/cache.go:40–42  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

38}
39
40func (tc *templateCache) existsInModelPath(s string) bool {
41 return utils.ExistsInPath(tc.templatesPath, s)
42}
43func (tc *templateCache) loadTemplateIfExists(templateType TemplateType, templateName string) error {
44
45 // Check if the template was already loaded

Callers 2

loadTemplateIfExistsMethod · 0.95

Calls 1

ExistsInPathFunction · 0.92

Tested by

no test coverage detected