docs(pii_masking.md): fix presidio tutorial

This commit is contained in:
Krrish Dholakia 2024-02-13 07:41:30 -08:00
parent d95eb6ca43
commit f09c09ace4
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ export PRESIDIO_ANONYMIZER_API_BASE="http://localhost:5001"
```yaml
litellm_settings:
litellm.callbacks = ["presidio"]
callbacks = ["presidio", ...] # e.g. ["presidio", custom_callbacks.proxy_handler_instance]
```
## Start proxy

View file

@ -366,7 +366,7 @@ def embedding(
aws_access_key_id = optional_params.pop("aws_access_key_id", None)
aws_region_name = optional_params.pop("aws_region_name", None)
if aws_access_key_id != None:
if aws_access_key_id is not None:
# uses auth params passed to completion
# aws_access_key_id is not None, assume user is trying to auth using litellm.completion
client = boto3.client(