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 gaurdrail code qa
Sameer Kankute8bbbd1e46571
diff --git a/litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.py b/litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.pyindex 99abdf28211..e76a02a6e4d 100644--- a/litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.py+++ b/litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.py@@ -25,6 +25,7 @@ from fastapi import HTTPExceptionfrom litellm.integrations.custom_guardrail import (CustomGuardrail,ModifyResponseException,+ log_guardrail_information,)from litellm.types.guardrails import GuardrailEventHooksfrom litellm.types.proxy.guardrails.guardrail_hooks.base import GuardrailConfigModel@@ -536,6 +537,7 @@ class BlockCodeExecutionGuardrail(CustomGuardrail):detection_info={"language": language},)+ @log_guardrail_informationasync def apply_guardrail(self,inputs: GenericGuardrailAPIInputs,