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

Method FallbackUser

core/application/application.go:245–247  ·  view source on GitHub ↗

FallbackUser is the synthetic "local" user that UsageMiddleware uses to attribute requests when no authenticated user is on the context (i.e., --auth is off). nil when auth is on, since real users are always available there.

()

Source from the content-addressed store, hash-verified

243// (i.e., --auth is off). nil when auth is on, since real users are
244// always available there.
245func (a *Application) FallbackUser() *auth.User {
246 return a.fallbackUser
247}
248
249// PIIRedactor returns the regex-tier PII redactor or nil if PII
250// filtering is disabled. The chat-route middleware uses this to apply

Callers 7

RegisterOllamaRoutesFunction · 0.80
resolveUsageUserFunction · 0.80
RegisterAnthropicRoutesFunction · 0.80
RegisterOpenAIRoutesFunction · 0.80
piiViewerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected