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

Method Select

pkg/functions/functions.go:93–104  ·  view source on GitHub ↗

Select returns a list of functions containing the function with the given name

(name string)

Source from the content-addressed store, hash-verified

91
92// Select returns a list of functions containing the function with the given name
93func (f Functions) Select(name string) Functions {
94 var funcs Functions
95
96 for _, f := range f {
97 if f.Name == name {
98 funcs = []Function{f}
99 break
100 }
101 }
102
103 return funcs
104}

Callers 15

getUsageSinceFunction · 0.80
GetUserUsageFunction · 0.80
GetAllUsageFunction · 0.80
GetUserUsageBySourceFunction · 0.80
computeSourceTotalsFunction · 0.80
GetAllUsageBySourceFunction · 0.80
ResponsesEndpointFunction · 0.80
handleWSResponseCreateFunction · 0.80
ChatEndpointFunction · 0.80
PredictMethod · 0.80
FindNodeWithVRAMMethod · 0.80
GetWithExtrasMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected