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

Method IsAlias

core/config/model_config.go:402–402  ·  view source on GitHub ↗

IsAlias reports whether this config is a pure redirect to another model. Value receiver so it is callable on non-addressable config values too.

()

Source from the content-addressed store, hash-verified

400// IsAlias reports whether this config is a pure redirect to another model.
401// Value receiver so it is callable on non-addressable config values too.
402func (c ModelConfig) IsAlias() bool { return c.Alias != "" }
403
404// @Description PII filtering configuration. PII redaction is per-model so
405// that local models don't pay the latency or behaviour change of regex

Callers 10

ValidateMethod · 0.95
SetModelAndConfigMethod · 0.80
request_test.goFile · 0.80
ListAliasesEndpointFunction · 0.80
ResolveAliasMethod · 0.80
ValidateAliasTargetMethod · 0.80
ListAliasesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected