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

Method MITMHostOwners

core/application/application.go:400–405  ·  view source on GitHub ↗

MITMHostOwners returns the host→model-name map, useful for the admin status endpoint. The lookup is recomputed on each call to stay current with model-config edits without needing a MITMRestart.

()

Source from the content-addressed store, hash-verified

398// stay current with model-config edits without needing a
399// MITMRestart.
400func (a *Application) MITMHostOwners() map[string]string {
401 if a.backendLoader == nil {
402 return nil
403 }
404 return a.backendLoader.MITMHostOwners().Owners
405}
406
407// RouterDecisions returns the routing decision store. nil when stats
408// are disabled (--disable-stats); the RouteModel middleware skips the

Callers 2

buildMITMStatusFunction · 0.45
startMITMLockedFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected