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 origin/main into litellm_ishaan_april6
Ishaan Jafferf31d4faa87af
diff --cc litellm/proxy/common_utils/reset_budget_job.pyindex 84740975c2f,16243038b78..0b9ebc9d660--- a/litellm/proxy/common_utils/reset_budget_job.py+++ b/litellm/proxy/common_utils/reset_budget_job.py@@@ -1,8 -1,8 +1,8 @@@import asyncioimport jsonimport time- from datetime import datetime, timedelta, timezone+ from datetime import datetime, timezone-from typing import List, Literal, Optional, Union+from typing import Any, List, Literal, Optional, Unionfrom litellm._logging import verbose_proxy_loggerfrom litellm.proxy._types import (diff --cc ui/litellm-dashboard/src/components/team/TeamInfo.tsxindex a3601ad8d3b,254d46e978b..8d74832365e--- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx+++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx@@@ -591,12 -592,28 +595,33 @@@ const TeamInfoView: React.FC<TeamInfoPrupdateData.access_group_ids = values.access_group_ids;}+ // Pass default_team_member_models to the update request+ if (values.default_team_member_models !== undefined) {+ updateData.default_team_member_models = values.default_team_member_models;+ }++ // Handle router_settings - read fresh values from DOM at save time.+ const currentRouterSettings = routerSettingsRef.current?.getValue();+ if (currentRouterSettings?.router_settings) {+ const isMeaningfulValue = (value: unknown) =>+ value !== null &&+ value !== undefined &&+ value !== "" &&+ value !== false &&+ !(Array.isArray(value) && value.length === 0);++ const hasNewValues = Object.values(currentRouterSettings.router_settings).some(isMeaningfulValue);+ const hadExistingSettings = info.router_settings &&+ Object.values(info.router_settings).some(isMeaningfulValue);++ // Send if there are new values OR if the user is clearing existing ones+ if (hasNewValues || hadExistingSettings) {+ updateData.router_settings = currentRouterSettings.router_settings;+ }+ }+const response = await teamUpdateCall(accessToken, updateData);+ queryClient.invalidateQueries({ queryKey: organizationKeys.all });NotificationsManager.success("Team settings updated successfully");setIsEditing(false);