From ed5bdabcfd81011c3b3c3ebf7784c9044352925c Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 25 Feb 2026 10:48:14 -0800 Subject: [PATCH] fix: remove unused code --- .../block_code_execution.py | 18 ------------------ 1 file changed, 18 deletions(-) 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.py index f5e7c2b379a..761b2c46b97 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 @@ -26,24 +26,6 @@ if TYPE_CHECKING: from litellm.litellm_core_utils.litellm_logging import \ Logging as LiteLLMLoggingObj -# Default executable languages when blocked_languages is not set (block-all mode uses this for "block all") -DEFAULT_BLOCKED_LANGUAGES: List[str] = [ - "python", - "javascript", - "js", - "bash", - "sh", - "ruby", - "go", - "java", - "csharp", - "php", - "c", - "cpp", - "rust", - "sql", -] - # Language tag aliases (normalize to canonical for comparison) LANGUAGE_ALIASES: Dict[str, str] = { "js": "javascript",