Parameter | Type | Description | Required | Default |
---|---|---|---|---|
mapping_field | string | JSON path to extract content from request body (e.g., “prompt” or “messages.content”) | No | — |
retention_period | integer | Time in seconds to retain fingerprint data for violation tracking | No | 60 |
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
embedding_param_bag.enabled | boolean | Whether to enable embedding-based moderation | No | false |
embedding_param_bag.threshold | float | Similarity threshold (0.0-1.0) to flag content | Yes | — |
embedding_param_bag.deny_topic_action | string | Action to take when content matches deny samples (only “block” supported) | Yes | — |
embedding_param_bag.deny_samples | array | List of text samples to block (semantic similarity comparison) | No | [] |
embedding_param_bag.embeddings_config.provider | string | Embedding provider (e.g., “openai”) | Yes | — |
embedding_param_bag.embeddings_config.model | string | Model to use for generating embeddings | Yes | — |
embedding_param_bag.embeddings_config.credentials | object | Credentials for the embedding service | Yes | — |
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
key_reg_param_bag.enabled | boolean | Whether to enable keyword and regex moderation | No | false |
key_reg_param_bag.similarity_threshold | float | Word similarity threshold (0.0-1.0) | No | 0.8 |
key_reg_param_bag.keywords | array | List of keywords to block | No | [] |
key_reg_param_bag.regex | array | List of regex patterns to block | No | [] |
key_reg_param_bag.actions.type | string | Action to take when content is blocked (only “block” supported) | Yes | — |
key_reg_param_bag.actions.message | string | Custom message for blocked content | No | — |
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
llm_param_bag.enabled | boolean | Whether to enable LLM-based moderation | No | false |
llm_param_bag.provider | string | LLM provider (“openai” or “gemini”) | Yes | — |
llm_param_bag.model | string | Model to use for content analysis | Yes | — |
llm_param_bag.max_tokens | integer | Maximum tokens for LLM response | No | 1000 |
llm_param_bag.instructions | string | Custom instructions for content analysis | No | — |
llm_param_bag.credentials | object | Credentials for the LLM service | Yes | — |