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

Method MITMHostConflicts

core/application/application.go:388–394  ·  view source on GitHub ↗

MITMHostConflicts returns a snapshot of host→[]model-name pairs that are claimed by 2+ model configs. Empty when the 1-to-1 invariant holds. Non-empty disables the MITM listener — read by the admin status endpoint to explain why.

()

Source from the content-addressed store, hash-verified

386// holds. Non-empty disables the MITM listener — read by the admin
387// status endpoint to explain why.
388func (a *Application) MITMHostConflicts() map[string][]string {
389 p := a.mitmHostConflicts.Load()
390 if p == nil {
391 return nil
392 }
393 return *p
394}
395
396// MITMHostOwners returns the host→model-name map, useful for the
397// admin status endpoint. The lookup is recomputed on each call to

Callers 1

buildMITMStatusFunction · 0.80

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected