MCPcopy Create free account
hub / github.com/mudler/LocalAI / initializeTemplateMapKey

Method initializeTemplateMapKey

core/templates/cache.go:34–38  ·  view source on GitHub ↗
(tt TemplateType)

Source from the content-addressed store, hash-verified

32}
33
34func (tc *templateCache) initializeTemplateMapKey(tt TemplateType) {
35 if _, ok := tc.templates[tt]; !ok {
36 tc.templates[tt] = make(map[string]*template.Template)
37 }
38}
39
40func (tc *templateCache) existsInModelPath(s string) bool {
41 return utils.ExistsInPath(tc.templatesPath, s)

Callers 1

evaluateTemplateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected