Repository navigation
docs(enkryptai): drop unsupported deployment_name, detectors, block_on_violation - #1352
Conversation
…on from EnkryptAI guardrail page Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Live validation of this docs change against litellm Config: one guardrail with the OLD docs snippet ( Results What the stub actually received from litellm (apikey redacted) So with the old snippet no Also checked: the file still exists on docs |
Summary
docs/proxy/guardrails/enkryptai.mddocumented threelitellm_paramsthat the EnkryptAI guardrail never uses:deployment_name("Sent via X-Enkrypt-Deployment header"),detectors(per-detector config sent to the API), andblock_on_violation: false("log violations but don't block", a "Monitor Mode" section).In
litellm/proxy/guardrails/guardrail_hooks/enkryptai/enkryptai.py,EnkryptAIGuardrails.__init__only readsapi_key,api_baseandpolicy_name; everything else lands inself.optional_paramsand is never consumed._call_enkryptai_guardrailspostspayload = {"text": prompt}with theapikeyheader and an optionalx-enkrypt-policyheader, so noX-Enkrypt-Deploymentheader or detector config is ever sent. The pre/post/during-call hooks unconditionallyraise ValueError(...)whenattacks_detected, so there is no monitor mode. The fields exist on theEnkryptAIGuardrailConfigModeltype and are forwarded byenkryptai/__init__.pybut have no effect.This PR removes the "Using Deployments" and "Monitor Mode" sections, the three rows from the Configuration Options table, the
block_on_violationsentence under Error Handling, and thedetectorsblock from thepolicy_nameexample, replacing them with a short note that detection is controlled by the policy referenced inpolicy_nameand that any violation blocks the request.Fixes LIT-7290
https://linear.app/litellm-ai/issue/LIT-7290/docs-proxyguardrailsenkryptaimd-lines-178-200-deployment-name
Link to Devin session: https://app.devin.ai/sessions/6e14c5796a2045afb5dbb28da26459d3
Open in Devin Desktop: https://app.devin.ai/desktop/session/6e14c5796a2045afb5dbb28da26459d3?variant=devin