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]

fix: fix tests

Krrish Dholakiaf32b0364c4d9
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 7aa362e494e..8fc98e5d506 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -16247,6 +16247,36 @@
"output_cost_per_token": 0.0,
"supports_function_calling": true
},
+ "ollama/deepseek-v3.1:671b-cloud" : {
+ "input_cost_per_token": 0.0,
+ "litellm_provider": "ollama",
+ "max_input_tokens": 163840,
+ "max_output_tokens": 163840,
+ "max_tokens": 163840,
+ "mode": "chat",
+ "output_cost_per_token": 0.0,
+ "supports_function_calling": true
+ },
+ "ollama/gpt-oss:120b-cloud" : {
+ "input_cost_per_token": 0.0,
+ "litellm_provider": "ollama",
+ "max_input_tokens": 131072,
+ "max_output_tokens": 131072,
+ "max_tokens": 131072,
+ "mode": "chat",
+ "output_cost_per_token": 0.0,
+ "supports_function_calling": true
+ },
+ "ollama/gpt-oss:20b-cloud" : {
+ "input_cost_per_token": 0.0,
+ "litellm_provider": "ollama",
+ "max_input_tokens": 131072,
+ "max_output_tokens": 131072,
+ "max_tokens": 131072,
+ "mode": "chat",
+ "output_cost_per_token": 0.0,
+ "supports_function_calling": true
+ },
"ollama/internlm2_5-20b-chat": {
"input_cost_per_token": 0.0,
"litellm_provider": "ollama",
@@ -16408,6 +16438,16 @@
"mode": "completion",
"output_cost_per_token": 0.0
},
+ "ollama/qwen3-coder:480b-cloud": {
+ "input_cost_per_token": 0.0,
+ "litellm_provider": "ollama",
+ "max_input_tokens": 262144,
+ "max_output_tokens": 262144,
+ "max_tokens": 262144,
+ "mode": "chat",
+ "output_cost_per_token": 0.0,
+ "supports_function_calling": true
+ },
"ollama/vicuna": {
"input_cost_per_token": 0.0,
"litellm_provider": "ollama",
diff --git a/tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py b/tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py
index bf051085ccb..ab9ac0acd9b 100644
--- a/tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py
+++ b/tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py
@@ -552,6 +552,7 @@ class TestMCPRequestHandler:
mcp_servers_result,
mcp_server_auth_headers,
oauth2_headers,
+ raw_headers,
) = await MCPRequestHandler.process_mcp_request(scope)
assert auth_result == mock_auth_result
assert mcp_auth_header == expected_result["mcp_auth"]
@@ -726,6 +727,7 @@ class TestMCPCustomHeaderName:
mcp_servers,
mcp_server_auth_headers,
oauth2_headers,
+ raw_headers,
) = await MCPRequestHandler.process_mcp_request(scope)
# Assert the results
@@ -981,6 +983,7 @@ def test_mcp_path_based_server_segregation(monkeypatch):
mcp_servers,
mcp_server_auth_headers,
oauth2_headers,
+ raw_headers,
) = get_auth_context()
# Capture the MCP servers for testing