Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs(lakera_ai.md): detail supported params

Krrish Dholakia4978d7ad0012
diff --git a/docs/my-website/docs/proxy/guardrails/lakera_ai.md b/docs/my-website/docs/proxy/guardrails/lakera_ai.md
index e66329dcb0c..81dd3d8a60d 100644
--- a/docs/my-website/docs/proxy/guardrails/lakera_ai.md
+++ b/docs/my-website/docs/proxy/guardrails/lakera_ai.md
@@ -126,3 +126,30 @@ curl -i http://localhost:4000/v1/chat/completions \
</Tabs>
+
+
+## Supported Params
+
+```yaml
+guardrails:
+ - guardrail_name: "lakera-guard"
+ litellm_params:
+ guardrail: lakera_v2 # supported values: "aporia", "bedrock", "lakera"
+ mode: "during_call"
+ api_key: os.environ/LAKERA_API_KEY
+ api_base: os.environ/LAKERA_API_BASE
+ ### OPTIONAL ###
+ # project_id: Optional[str] = None,
+ # payload: Optional[bool] = True,
+ # breakdown: Optional[bool] = True,
+ # metadata: Optional[Dict] = None,
+ # dev_info: Optional[bool] = True,
+```
+
+- `api_base`: (Optional[str]) The base of the Lakera integration. Defaults to `https://api.lakera.ai`
+- `api_key`: (str) The API Key for the Lakera integration.
+- `project_id`: (Optional[str]) ID of the relevant project
+- `payload`: (Optional[bool]) When true the response will return a payload object containing any PII, profanity or custom detector regex matches detected, along with their location within the contents.
+- `breakdown`: (Optional[bool]) When true the response will return a breakdown list of the detectors that were run, as defined in the policy, and whether each of them detected something or not.
+- `metadata`: (Optional[Dict]) Metadata tags can be attached to screening requests as an object that can contain any arbitrary key-value pairs.
+- `dev_info`: (Optional[bool]) When true the response will return an object with developer information about the build of Lakera Guard.