Repository navigation
docs(guardrails): add the Decision Model guardrail page - #2264
Conversation
Documents the decision_model guardrail from BerriAI/litellm#45663: config, Admin UI create flow and Test section, failure semantics, streaming, cost, logging and the config reference. Links it from the decisions and TypeSafe compaction pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| | Property | Details | | ||
| |-------|-------| | ||
| | Description | Ask a decision model such as TypeSafe Jev yes/no questions you write about every request or response, and block or log when a question's probability reaches its threshold. | | ||
| | Provider | LiteLLM native. Any model that serves [`/v1/decisions`](../../decisions.md) can be the decision model: TypeSafe Jev, Perplexity, OpenAI, Microsoft Foundry, Databricks and the other providers listed there. | |
There was a problem hiding this comment.
🟡 vLLM guardrail screening fails on predicates
Selecting a vLLM model for decision_model fails screening because the guardrail sends predicates. vLLM accepts only choice questions, so guarded calls fail rather than receive a verdict.
Learn more
The decision model guardrail sends yes/no predicate questions for every check. The supported-provider note states that vLLM answers only choice questions. Listing all /v1/decisions models as guardrail-compatible therefore includes a model whose supported question type cannot serve any guardrail check.
Example: An operator selects hosted_vllm/Qwen/Qwen3-0.6B as the guardrail decision model and adds a block check. The first guarded request sends a predicate to vLLM and receives an error instead of a probability.
Recommended fix: Restrict the guardrail-compatible model list to providers that support predicate questions, and explicitly exclude vLLM here and in the Admin UI guidance unless the guardrail implements a supported choice-question translation.
Was this helpful? React with 👍 or 👎 to provide feedback.
Summary
Adds a Decision Model guardrail page for BerriAI/litellm#45663, which merged to
mainand was backported torc/1.106.0in BerriAI/litellm#45888. The page covers the config.yaml setup with a blocked and a passing request, the Admin UI flow (the evaluation-mode model picker, question cards, the Test section and the Guardrail Garden cards), how messages, tool calls and long inputs are screened, thefail_closeddefault and its 502, streamingpost_callsampling andstreaming_end_of_stream_only, cost and latency, theguardrail_informationrecord, and a config reference. It also documents current gaps: guardrail decisions calls write no spend rows, chunks streamed before a flagged scan reach the client, a team-only decision model fails every call, and the edit page cannot change questions.The decisions page gets a section linking to the guardrail, and the TypeSafe compaction page now says that guardrail never blocks and points to this one. The two screenshots come from the live audit of #45663 on its final UI.
Part of LIT-9443
🤖 Generated with Claude Code