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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix init presidio guardrail
Ishaan Jaff7712aa652aeb
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex eb77a0a198c..4e40af11ca7 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -1361,12 +1361,13 @@ class Logging:)is not True):- self.model_call_details, result = await callback.async_logging_hook(- kwargs=self.model_call_details,- result=result,- call_type=self.call_type,- )continue++ self.model_call_details, result = await callback.async_logging_hook(+ kwargs=self.model_call_details,+ result=result,+ call_type=self.call_type,+ )elif isinstance(callback, CustomLogger):self.model_call_details, result = await callback.async_logging_hook(kwargs=self.model_call_details,diff --git a/litellm/proxy/proxy_config.yaml b/litellm/proxy/proxy_config.yamlindex 0aaadc13fe1..f6942dd29eb 100644--- a/litellm/proxy/proxy_config.yaml+++ b/litellm/proxy/proxy_config.yaml@@ -13,6 +13,7 @@ guardrails:litellm_params:guardrail: presidio # supported values: "aporia", "lakera", "presidio"mode: "pre_call" # pre_call, during_call, post_call+ output_parse_pii: Truegeneral_settings:master_key: sk-1234