From 4ce773feeea85429cf4d340a5c456a5240b2b0b3 Mon Sep 17 00:00:00 2001 From: CHX606 <1461530475@qq.com> Date: Sun, 20 Sep 2026 21:28:19 +0800 Subject: [PATCH] docs: remove in-tree guardrail product guide --- .../base_llm/guardrail_translation/README.md | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 litellm/llms/base_llm/guardrail_translation/README.md diff --git a/litellm/llms/base_llm/guardrail_translation/README.md b/litellm/llms/base_llm/guardrail_translation/README.md deleted file mode 100644 index 9bddb502c6a..00000000000 --- a/litellm/llms/base_llm/guardrail_translation/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# Request message scoping - -Set `skip_assistant_message_in_guardrail` to exclude assistant messages in request history from guardrail evaluation. This excludes their text, images and tool calls from the supported request handlers, and excludes the messages from structured guardrail inputs. The model still receives the original assistant messages, and post-call guardrails still evaluate newly generated replies - -Enable it for the proxy in `config.yaml`: - -```yaml -litellm_settings: - skip_assistant_message_in_guardrail: true -``` - -Or set it for one guardrail: - -```yaml -guardrails: - - guardrail_name: content-check - litellm_params: - guardrail: generic_guardrail_api - mode: pre_call - api_base: https://your-guardrail-api.example/check - skip_assistant_message_in_guardrail: true -``` - -A per-guardrail `true` or `false` takes precedence over the global value. Omitting the per-guardrail value inherits the global setting, which defaults to `false` - -The setting follows the existing request-role filters for unified Chat Completions, Anthropic Messages, Bedrock Converse passthrough and Lakera v2. The unified Responses API handler does not currently implement these request-role filters