MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / newModelRegistry

Function newModelRegistry

ai-provider/model-runtime/provider.go:223–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221}
222
223func newModelRegistry() *ModelRegistry {
224 return &ModelRegistry{
225 models: eosc.BuildUntyped[string, IModel](),
226 defaultModels: eosc.BuildUntyped[string, IModel](),
227 typeIndex: make(map[string]*modelNode),
228 reverseMap: make(map[string]*modelNode),
229 }
230}
231
232func (r *ModelRegistry) getShard(key string) *sync.RWMutex {
233 h := fnv.New32a()

Callers 2

NewCustomizeProviderFunction · 0.85
NewProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected