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
Merge branch 'main' into litellm_ui_fix_guardrail_edit
Yogeshwaran Ravichandran02733ee86c90
diff --cc ui/litellm-dashboard/src/components/guardrails/guardrail_info.tsxindex 6c91e59d3bd,29c2e7d13ee..0a15446db97--- a/ui/litellm-dashboard/src/components/guardrails/guardrail_info.tsx+++ b/ui/litellm-dashboard/src/components/guardrails/guardrail_info.tsx@@@ -270,23 -270,15 +270,18 @@@ const GuardrailInfoView: React.FC<GuardupdateData.litellm_params.pii_entities_config = newPiiEntitiesConfig;}- // Always include Content Filter patterns to ensure they persist when other fields change- if (guardrailData.litellm_params?.guardrail === "litellm_content_filter") {+ // Only add Content Filter patterns if there are changes+ if (guardrailData.litellm_params?.guardrail === "litellm_content_filter" && hasUnsavedContentFilterChanges) {+ const originalPatterns = guardrailData.litellm_params?.patterns || [];+ const originalBlockedWords = guardrailData.litellm_params?.blocked_words || [];+const formattedData = formatContentFilterDataForAPI(- contentFilterDataRef.current.patterns,- contentFilterDataRef.current.blockedWords,+ contentFilterDataRef.current.patterns || [],+ contentFilterDataRef.current.blockedWords || [],);- if (JSON.stringify(originalPatterns) !== JSON.stringify(formattedData.patterns)) {- updateData.litellm_params.patterns = formattedData.patterns;- }-- if (JSON.stringify(originalBlockedWords) !== JSON.stringify(formattedData.blocked_words)) {- updateData.litellm_params.blocked_words = formattedData.blocked_words;- }+ updateData.litellm_params.patterns = formattedData.patterns;+ updateData.litellm_params.blocked_words = formattedData.blocked_words;}if (guardrailData.litellm_params?.guardrail === "tool_permission") {