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
ensuring this still works PENDING PROXY EXTRAS
yuneng-jiang830f2deb0da6
diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prismaindex c8eec7c06d6..71b398c59a4 100644--- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma+++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma@@ -154,6 +154,7 @@ model LiteLLM_DeletedTeamTable {blocked Boolean @default(false)model_spend Json @default("{}")model_max_budget Json @default("{}")+ router_settings Json? @default("{}")team_member_permissions String[] @default([])model_id Int? // id for LiteLLM_ModelTable -> stores team-level model aliases@@ -328,6 +329,7 @@ model LiteLLM_DeletedVerificationToken {allowed_routes String[] @default([])model_spend Json @default("{}")model_max_budget Json @default("{}")+ router_settings Json? @default("{}")budget_id String?organization_id String?object_permission_id String?diff --git a/litellm/proxy/management_endpoints/key_management_endpoints.py b/litellm/proxy/management_endpoints/key_management_endpoints.pyindex 9b9dcb1706b..faa6fddf7ab 100644--- a/litellm/proxy/management_endpoints/key_management_endpoints.py+++ b/litellm/proxy/management_endpoints/key_management_endpoints.py@@ -2563,7 +2563,7 @@ def _transform_verification_tokens_to_deleted_records(if org_id_value is not None:record["organization_id"] = org_id_value- for json_field in ["aliases", "config", "permissions", "metadata", "model_spend", "model_max_budget"]:+ for json_field in ["aliases", "config", "permissions", "metadata", "model_spend", "model_max_budget", "router_settings"]:if json_field in record and record[json_field] is not None:record[json_field] = json.dumps(record[json_field])diff --git a/litellm/proxy/management_endpoints/team_endpoints.py b/litellm/proxy/management_endpoints/team_endpoints.pyindex afc487784f2..8d4b636a206 100644--- a/litellm/proxy/management_endpoints/team_endpoints.py+++ b/litellm/proxy/management_endpoints/team_endpoints.py@@ -2539,7 +2539,7 @@ def _transform_teams_to_deleted_records()record = deleted_record.model_dump()- for json_field in ["members_with_roles", "metadata", "model_spend", "model_max_budget"]:+ for json_field in ["members_with_roles", "metadata", "model_spend", "model_max_budget", "router_settings"]:if json_field in record and record[json_field] is not None:record[json_field] = json.dumps(record[json_field])diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prismaindex c8eec7c06d6..71b398c59a4 100644--- a/litellm/proxy/schema.prisma+++ b/litellm/proxy/schema.prisma@@ -154,6 +154,7 @@ model LiteLLM_DeletedTeamTable {blocked Boolean @default(false)model_spend Json @default("{}")model_max_budget Json @default("{}")+ router_settings Json? @default("{}")team_member_permissions String[] @default([])model_id Int? // id for LiteLLM_ModelTable -> stores team-level model aliases@@ -328,6 +329,7 @@ model LiteLLM_DeletedVerificationToken {allowed_routes String[] @default([])model_spend Json @default("{}")model_max_budget Json @default("{}")+ router_settings Json? @default("{}")budget_id String?organization_id String?object_permission_id String?diff --git a/pyproject.toml b/pyproject.tomlindex f4fd1d9b102..aa8e6fd97be 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -59,11 +59,7 @@ websockets = {version = "^15.0.1", optional = true}boto3 = {version = "1.36.0", optional = true}redisvl = {version = "^0.4.1", optional = true, markers = "python_version >= '3.9' and python_version < '3.14'"}mcp = {version = "^1.21.2", optional = true, python = ">=3.10"}-<<<<<<< HEAD-litellm-proxy-extras = {version = "0.4.15", optional = true}-=======litellm-proxy-extras = {version = "0.4.21", optional = true}->>>>>>> originrich = {version = "13.7.1", optional = true}litellm-enterprise = {version = "0.1.27", optional = true}diskcache = {version = "^5.6.1", optional = true}diff --git a/schema.prisma b/schema.prismaindex 8e40ae68632..52170f2f3e6 100644--- a/schema.prisma+++ b/schema.prisma@@ -154,6 +154,7 @@ model LiteLLM_DeletedTeamTable {blocked Boolean @default(false)model_spend Json @default("{}")model_max_budget Json @default("{}")+ router_settings Json? @default("{}")team_member_permissions String[] @default([])model_id Int? // id for LiteLLM_ModelTable -> stores team-level model aliases@@ -328,6 +329,7 @@ model LiteLLM_DeletedVerificationToken {allowed_routes String[] @default([])model_spend Json @default("{}")model_max_budget Json @default("{}")+ router_settings Json? @default("{}")budget_id String?organization_id String?object_permission_id String?