mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
lasso-guardrail-api docs (#18652)
This commit is contained in:
parent
f752ec3eaf
commit
d8d10f5e25
1 changed files with 19 additions and 0 deletions
|
|
@ -358,6 +358,25 @@ guardrails:
|
|||
lasso_user_id: os.environ/LASSO_USER_ID
|
||||
```
|
||||
|
||||
### Alternative Configuration: Generic Guardrail API
|
||||
|
||||
Lasso can also be configured using the [Generic Guardrail API](/docs/adding_provider/generic_guardrail_api) format:
|
||||
|
||||
```yaml
|
||||
guardrails:
|
||||
- guardrail_name: "lasso-api-post-guard"
|
||||
litellm_params:
|
||||
guardrail: generic_guardrail_api
|
||||
mode: post_call
|
||||
api_base: https://server.lasso.security/gateway/v3
|
||||
api_key: os.environ/LASSO_API_KEY
|
||||
additional_provider_specific_params:
|
||||
mask: false # Set to true to enable PII masking
|
||||
```
|
||||
|
||||
**Parameters:**
|
||||
- **`mask`**: Boolean flag to enable/disable PII masking (default: `false`)
|
||||
|
||||
## Security Features
|
||||
|
||||
Lasso Security provides protection against:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue