diff --git a/ui/litellm-dashboard/src/components/guardrails/guardrail_garden_configs.ts b/ui/litellm-dashboard/src/components/guardrails/guardrail_garden_configs.ts index a6a142bdc37..7a1b5314d33 100644 --- a/ui/litellm-dashboard/src/components/guardrails/guardrail_garden_configs.ts +++ b/ui/litellm-dashboard/src/components/guardrails/guardrail_garden_configs.ts @@ -148,6 +148,18 @@ export const GUARDRAIL_PRESETS: Record = { mode: "pre_call", defaultOn: false, }, + block_code_execution: { + provider: "BlockCodeExecution", + guardrailNameSuggestion: "Block Code Execution", + mode: "pre_call", + defaultOn: false, + }, + cf_competitor_intent: { + provider: "LitellmContentFilter", + guardrailNameSuggestion: "Competitor Name Blocking", + mode: "pre_call", + defaultOn: false, + }, // ── Partner Guardrails ── presidio: { diff --git a/ui/litellm-dashboard/src/components/guardrails/guardrail_garden_data.ts b/ui/litellm-dashboard/src/components/guardrails/guardrail_garden_data.ts index 2535bd19503..53ccb32c184 100644 --- a/ui/litellm-dashboard/src/components/guardrails/guardrail_garden_data.ts +++ b/ui/litellm-dashboard/src/components/guardrails/guardrail_garden_data.ts @@ -213,6 +213,24 @@ export const LITELLM_CONTENT_FILTER_CARDS: GuardrailCardInfo[] = [ logo: `${ASSET_PREFIX}litellm_logo.jpg`, tags: ["Keywords", "Blocklist"], }, + { + id: "block_code_execution", + name: "Block Code Execution", + description: "Detects markdown fenced code blocks in requests and responses. Block or mask executable code (e.g. Python, JavaScript, Bash) by language with configurable confidence.", + category: "litellm", + subcategory: "Code Safety", + logo: `${ASSET_PREFIX}litellm_logo.jpg`, + tags: ["Code", "Safety", "Prompt Injection"], + }, + { + id: "cf_competitor_intent", + name: "Competitor Name Blocking", + description: "Block or reframe competitor comparison and ranking intent. Detect when users ask to compare or recommend competitors (airline or generic competitor lists).", + category: "litellm", + subcategory: "Content Category", + logo: `${ASSET_PREFIX}litellm_logo.jpg`, + tags: ["Content Category", "Competitor", "Topic Blocker"], + }, ]; export const PARTNER_GUARDRAIL_CARDS: GuardrailCardInfo[] = [ diff --git a/ui/litellm-dashboard/src/components/guardrails/guardrail_info_helpers.tsx b/ui/litellm-dashboard/src/components/guardrails/guardrail_info_helpers.tsx index 040ef518e5e..d957be4306b 100644 --- a/ui/litellm-dashboard/src/components/guardrails/guardrail_info_helpers.tsx +++ b/ui/litellm-dashboard/src/components/guardrails/guardrail_info_helpers.tsx @@ -47,6 +47,7 @@ export const guardrail_provider_map: Record = { Lakera: "lakera_v2", LitellmContentFilter: "litellm_content_filter", ToolPermission: "tool_permission", + BlockCodeExecution: "block_code_execution", }; // Function to populate provider map from API response - updates the original map