diff --git a/ui/litellm-dashboard/src/components/guardrails.tsx b/ui/litellm-dashboard/src/components/guardrails.tsx index d0031b872f7..a8de7dd2f4f 100644 --- a/ui/litellm-dashboard/src/components/guardrails.tsx +++ b/ui/litellm-dashboard/src/components/guardrails.tsx @@ -13,6 +13,7 @@ import { Guardrail, GuardrailDefinitionLocation } from "./guardrails/types"; import DeleteResourceModal from "./common_components/DeleteResourceModal"; import { getGuardrailLogoAndName } from "./guardrails/guardrail_info_helpers"; import { CustomCodeModal } from "./guardrails/custom_code"; +import GuardrailGarden from "./guardrails/guardrail_garden"; interface GuardrailsPanelProps { accessToken: string | null; @@ -106,12 +107,11 @@ const GuardrailsPanel: React.FC = ({ accessToken, userRole const handleDeleteConfirm = async () => { if (!guardrailToDelete || !accessToken) return; - // Log removed to maintain clean production code setIsDeleting(true); try { await deleteGuardrailCall(accessToken, guardrailToDelete.guardrail_id); NotificationsManager.success(`Guardrail "${guardrailToDelete.guardrail_name}" deleted successfully`); - await fetchGuardrails(); // Refresh the list + await fetchGuardrails(); } catch (error) { console.error("Error deleting guardrail:", error); NotificationsManager.fromBackend("Failed to delete guardrail"); @@ -136,11 +136,21 @@ const GuardrailsPanel: React.FC = ({ accessToken, userRole
+ Guardrail Garden Guardrails Test Playground + {/* Guardrail Garden Tab */} + + + + + {/* Existing Guardrails Tab */}
= ({ accessToken, userRole /> + {/* Test Playground Tab */}