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

Struct Context

core/cli/context/context.go:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package cliContext
2
3type Context struct {
4 Debug bool `env:"LOCALAI_DEBUG,DEBUG" default:"false" hidden:"" help:"DEPRECATED, use --log-level=debug instead. Enable debug logging"`
5 LogLevel *string `env:"LOCALAI_LOG_LEVEL" enum:"error,warn,info,debug,trace" help:"Set the level of logs to output [${enum}]"`
6 LogFormat *string `env:"LOCALAI_LOG_FORMAT" default:"default" enum:"default,text,json" help:"Set the format of logs to output [${enum}]"`
7 LogDedupLogs *bool `env:"LOCALAI_LOG_DEDUP" negatable:"" help:"Deduplicate consecutive identical log lines (auto-detected for terminals, use --log-dedup-logs to force on or --no-log-dedup-logs to force off)"`
8}

Callers 15

opus_test.goFile · 0.85
localvqe_test.goFile · 0.85
backend_test.goFile · 0.85
gocrispasr_test.goFile · 0.85
gowhisper_test.goFile · 0.85
app_test.goFile · 0.85
request_test.goFile · 0.85
baseurl_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected