MCPcopy Index your code
hub / github.com/mudler/LocalAI / IsPatternDetector

Method IsPatternDetector

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

IsPatternDetector reports whether this detector model matches secrets with regex patterns (built-in and/or operator-defined) rather than a neural NER model. Such a model runs entirely in-process (no backend / GGUF / VRAM); the PII resolver builds an in-process pattern matcher for it instead of loadi

()

Source from the content-addressed store, hash-verified

534// PII resolver builds an in-process pattern matcher for it instead of loading a
535// gRPC token-classifier.
536func (c *ModelConfig) IsPatternDetector() bool {
537 return len(c.PIIDetection.Builtins) > 0 || len(c.PIIDetection.Patterns) > 0
538}
539
540// @Description MCP configuration
541type MCPConfig struct {

Callers 4

ValidateMethod · 0.95
buildPIIStatusFunction · 0.80
PIINERResolverMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected