Content Filter
Filter blocked words and phrases from LLM message content.
Filter blocked words and phrases from LLM message content.
Replaces occurrences of configured blocked words with ‘[FILTERED]’ in message content. Supports both string content and multimodal list content.
Configuration
Section titled “Configuration”| Field | Type | Default | Description |
|---|---|---|---|
blocked_words | array | [] | List of words or phrases to filter from content. |
Examples
Section titled “Examples”# basictype: content_filterconfig: blocked_words: - badword - secret