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 team edit guardrail (#12823)
Ishaan Jaff67edd7c481ed
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex f869bd42378..4920f560c8c 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -14791,7 +14791,8 @@"supports_function_calling": true,"supports_parallel_function_calling": true,"supports_system_messages": true,- "supports_tool_choice": true+ "supports_tool_choice": true,+ "supports_reasoning": true},"lambda_ai/deepseek-r1-0528": {"max_tokens": 131072,@@ -14804,7 +14805,8 @@"supports_function_calling": true,"supports_parallel_function_calling": true,"supports_system_messages": true,- "supports_tool_choice": true+ "supports_tool_choice": true,+ "supports_reasoning": true},"lambda_ai/deepseek-r1-671b": {"max_tokens": 131072,@@ -14817,7 +14819,8 @@"supports_function_calling": true,"supports_parallel_function_calling": true,"supports_system_messages": true,- "supports_tool_choice": true+ "supports_tool_choice": true,+ "supports_reasoning": true},"lambda_ai/deepseek-v3-0324": {"max_tokens": 131072,@@ -15039,7 +15042,8 @@"supports_function_calling": true,"supports_parallel_function_calling": true,"supports_system_messages": true,- "supports_tool_choice": true+ "supports_tool_choice": true,+ "supports_reasoning": true},"voyage/voyage-01": {"max_tokens": 4096,diff --git a/ui/litellm-dashboard/src/components/team/team_info.tsx b/ui/litellm-dashboard/src/components/team/team_info.tsxindex 402f0b26e98..e72b6330c3a 100644--- a/ui/litellm-dashboard/src/components/team/team_info.tsx+++ b/ui/litellm-dashboard/src/components/team/team_info.tsx@@ -30,6 +30,7 @@ import {teamMemberUpdateCall,Member,teamUpdateCall,+ getGuardrailsList,} from "@/components/networking";import { Button, Form, Input, Select, message, Tooltip } from "antd";import { InfoCircleOutlined } from "@ant-design/icons";@@ -147,6 +148,7 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({const [mcpAccessGroups, setMcpAccessGroups] = useState<string[]>([]);const [mcpAccessGroupsLoaded, setMcpAccessGroupsLoaded] = useState(false);const [copiedStates, setCopiedStates] = useState<Record<string, boolean>>({})+ const [guardrailsList, setGuardrailsList] = useState<string[]>([]);console.log("userModels in team info", userModels);@@ -182,6 +184,23 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({}};+ useEffect(() => {+ const fetchGuardrails = async () => {+ try {+ if (!accessToken) return;+ const response = await getGuardrailsList(accessToken);+ const guardrailNames = response.guardrails.map(+ (g: { guardrail_name: string }) => g.guardrail_name+ );+ setGuardrailsList(guardrailNames);+ } catch (error) {+ console.error("Failed to fetch guardrails:", error);+ }+ };++ fetchGuardrails();+ }, [accessToken]);+const handleMemberCreate = async (values: any) => {try {if (accessToken == null) return;@@ -673,13 +692,14 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({<Selectmode="tags"placeholder="Select or enter guardrails"+ options={guardrailsList.map(name => ({ value: name, label: name }))}/></Form.Item><Form.Item label="Vector Stores" name="vector_stores"><VectorStoreSelectoronChange={(values) =>- form.setFieldValue("vector_stores", values)+ form.setFieldValue("vector_stores", values)}value={form.getFieldValue("vector_stores")}accessToken={accessToken || ""}