Merge pull request #1931 from BerriAI/litellm_microsoft_presidio_pii

feat(proxy_server.py): support for pii masking with microsoft presidio
This commit is contained in:
Krish Dholakia 2024-02-11 00:27:14 -08:00 committed by GitHub
commit 1391490d92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 133 additions and 5 deletions

View file

@ -92,7 +92,7 @@ class ProxyLogging:
self,
user_api_key_dict: UserAPIKeyAuth,
data: dict,
call_type: Literal["completion", "embeddings"],
call_type: Literal["completion", "embeddings", "image_generation"],
):
"""
Allows users to modify/reject the incoming request to the proxy, without having to deal with parsing Request body.