| title |
ContentFilterReadEntry |
A custom regex content filter, with whether inference enforces it.
| Field |
Type |
Required |
Description |
Example |
action |
components.ContentFilterAction |
✔️ |
Action taken when the pattern matches |
block |
label |
OptionalNullable[str] |
➖ |
Optional label used in redaction placeholders or error messages |
[API_KEY] |
pattern |
str |
✔️ |
A regex pattern to match against request content |
\b(sk-[a-zA-Z0-9]{48})\b |
is_enforced |
bool |
✔️ |
Whether inference applies this pattern. False for a pattern saved before pattern validation that is too complex to run safely; it is kept but skipped until replaced. |
true |