Parameters
See plugin common configurations for configuration options available to all plugins.
match_all_roles
If true, validate messages from all roles. If false, validate the message from
userrole only.match_all_conversation_history
If true, concatenate and check all messages in the conversation history. If false, only check the content of the last message.
This option does not apply to Responses API requests because
instructionsandinputare parallel fields rather than conversation history.allow_patterns
An array of RegEx patterns that messages should match. When configured, messages must match at least one pattern to be considered valid.
deny_patterns
An array of RegEx patterns that messages should not match. If messages match any of the patterns, the request should be rejected.
If both
allow_patternsanddeny_patternsare configured, the plugin first ensures that at least oneallow_patternsis matched.fail_mode
vaild vaule:
skip,warn, orerrorBehavior when the plugin is bound to a Consumer and receives a request whose format it does not recognize, such as a non-AI request. With
skip, the unrecognized request is passed through unchecked. Withwarn, the request is passed through and a warning is logged. Witherror, the request is rejected with HTTP 400.Available in API7 Enterprise from version 3.9.14.
max_req_body_size
Maximum request body size in bytes buffered into memory. Larger request bodies are rejected. Available in API7 Enterprise from version 3.9.17 on the 3.9 line and from version 3.10.4 on the 3.10 line.