Prerequisites
- A LiteLLM proxy that already routes model traffic.
- A Silmaril guardrail endpoint and API key from deployment access.
- If you self-host, use the guardrail endpoint from the same deployment as your classify endpoint.
SILMARIL_GUARDRAIL_URL and SILMARIL_API_KEY in the proxy environment.
Configure the guardrail
Start in warn mode while validating proxy coverage.Expected result
LiteLLM calls Silmaril before and after the model call. Would-block traffic returns warning metadata while the proxy call continues. If the guardrail cannot be reached,unreachable_fallback: fail_open also allows the call to continue.