Skip to content

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]

build: cascade budget changes

Krrish Dholakiaaffc4524e176
diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20250603210143_cascade_budget_changes/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20250603210143_cascade_budget_changes/migration.sql
new file mode 100644
index 00000000000..3d36e42577c
--- /dev/null
+++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20250603210143_cascade_budget_changes/migration.sql
@@ -0,0 +1,6 @@
+-- DropForeignKey
+ALTER TABLE "LiteLLM_TeamMembership" DROP CONSTRAINT "LiteLLM_TeamMembership_budget_id_fkey";
+
+-- AddForeignKey
+ALTER TABLE "LiteLLM_TeamMembership" ADD CONSTRAINT "LiteLLM_TeamMembership_budget_id_fkey" FOREIGN KEY ("budget_id") REFERENCES "LiteLLM_BudgetTable"("budget_id") ON DELETE CASCADE ON UPDATE CASCADE;
+
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 66c8daf18bd..79f657e1d96 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -5031,6 +5031,58 @@
"supports_reasoning": true,
"supports_computer_use": true
},
+ "claude-4-opus-20250514": {
+ "max_tokens": 32000,
+ "max_input_tokens": 200000,
+ "max_output_tokens": 32000,
+ "input_cost_per_token": 1.5e-05,
+ "output_cost_per_token": 7.5e-05,
+ "search_context_cost_per_query": {
+ "search_context_size_low": 0.01,
+ "search_context_size_medium": 0.01,
+ "search_context_size_high": 0.01
+ },
+ "cache_creation_input_token_cost": 1.875e-05,
+ "cache_read_input_token_cost": 1.5e-06,
+ "litellm_provider": "anthropic",
+ "mode": "chat",
+ "supports_function_calling": true,
+ "supports_vision": true,
+ "tool_use_system_prompt_tokens": 159,
+ "supports_assistant_prefill": true,
+ "supports_pdf_input": true,
+ "supports_prompt_caching": true,
+ "supports_response_schema": true,
+ "supports_tool_choice": true,
+ "supports_reasoning": true,
+ "supports_computer_use": true
+ },
+ "claude-4-sonnet-20250514": {
+ "max_tokens": 64000,
+ "max_input_tokens": 200000,
+ "max_output_tokens": 64000,
+ "input_cost_per_token": 3e-06,
+ "output_cost_per_token": 1.5e-05,
+ "search_context_cost_per_query": {
+ "search_context_size_low": 0.01,
+ "search_context_size_medium": 0.01,
+ "search_context_size_high": 0.01
+ },
+ "cache_creation_input_token_cost": 3.75e-06,
+ "cache_read_input_token_cost": 3e-07,
+ "litellm_provider": "anthropic",
+ "mode": "chat",
+ "supports_function_calling": true,
+ "supports_vision": true,
+ "tool_use_system_prompt_tokens": 159,
+ "supports_assistant_prefill": true,
+ "supports_pdf_input": true,
+ "supports_prompt_caching": true,
+ "supports_response_schema": true,
+ "supports_tool_choice": true,
+ "supports_reasoning": true,
+ "supports_computer_use": true
+ },
"claude-3-7-sonnet-latest": {
"supports_computer_use": true,
"max_tokens": 128000,
@@ -12689,10 +12741,10 @@
"output_cost_per_token": 1e-07,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_function_calling": false,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/llama-v3p2-3b-instruct": {
"max_tokens": 16384,
@@ -12702,10 +12754,10 @@
"output_cost_per_token": 1e-07,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_function_calling": false,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/llama-v3p1-8b-instruct": {
"max_tokens": 16384,
@@ -12715,10 +12767,10 @@
"output_cost_per_token": 1e-07,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_function_calling": false,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/llama-v3p2-11b-vision-instruct": {
"max_tokens": 16384,
@@ -12728,13 +12780,13 @@
"output_cost_per_token": 2e-07,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_function_calling": false,
"supports_vision": true,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
- "accounts/fireworks/models/llama-v3p2-90b-vision-instruct": {
+ "fireworks_ai/accounts/fireworks/models/llama-v3p2-90b-vision-instruct": {
"max_tokens": 16384,
"max_input_tokens": 16384,
"max_output_tokens": 16384,
@@ -12742,7 +12794,7 @@
"output_cost_per_token": 9e-07,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_tool_choice": false,
"supports_vision": true,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing"
@@ -12781,10 +12833,10 @@
"output_cost_per_token": 9e-07,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_function_calling": false,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/qwen2p5-coder-32b-instruct": {
"max_tokens": 4096,
@@ -12794,10 +12846,10 @@
"output_cost_per_token": 9e-07,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_function_calling": false,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/yi-large": {
"max_tokens": 32768,
@@ -12807,10 +12859,10 @@
"output_cost_per_token": 3e-06,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_function_calling": false,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/deepseek-coder-v2-instruct": {
"max_tokens": 65536,
@@ -12820,10 +12872,10 @@
"output_cost_per_token": 1.2e-06,
"litellm_provider": "fireworks_ai",
"mode": "chat",
- "supports_function_calling": true,
+ "supports_function_calling": false,
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/deepseek-v3": {
"max_tokens": 8192,
@@ -12835,7 +12887,7 @@
"mode": "chat",
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/deepseek-r1": {
"max_tokens": 20480,
@@ -12847,7 +12899,7 @@
"mode": "chat",
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/deepseek-r1-basic": {
"max_tokens": 20480,
@@ -12859,7 +12911,19 @@
"mode": "chat",
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
+ },
+ "fireworks_ai/accounts/fireworks/models/deepseek-r1-0528": {
+ "max_tokens": 160000,
+ "max_input_tokens": 160000,
+ "max_output_tokens": 160000,
+ "input_cost_per_token": 3e-06,
+ "output_cost_per_token": 8e-06,
+ "litellm_provider": "fireworks_ai",
+ "mode": "chat",
+ "source": "https://fireworks.ai/pricing",
+ "supports_tool_choice": false,
+ "supports_response_schema": true
},
"fireworks_ai/accounts/fireworks/models/llama-v3p1-405b-instruct": {
"max_tokens": 16384,
@@ -12871,7 +12935,8 @@
"mode": "chat",
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": true,
+ "supports_function_calling": true
},
"fireworks_ai/accounts/fireworks/models/llama4-maverick-instruct-basic": {
"max_tokens": 131072,
@@ -12883,7 +12948,7 @@
"mode": "chat",
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/accounts/fireworks/models/llama4-scout-instruct-basic": {
"max_tokens": 131072,
@@ -12895,7 +12960,7 @@
"mode": "chat",
"supports_response_schema": true,
"source": "https://fireworks.ai/pricing",
- "supports_tool_choice": true
+ "supports_tool_choice": false
},
"fireworks_ai/nomic-ai/nomic-embed-text-v1.5": {
"max_tokens": 8192,