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
test(deepgram): pin litellm.max_budget to zero in the model authorization route test
yassin6e7c3f68a1f3
diff --git a/tests/test_litellm/proxy/pass_through_endpoints/test_deepgram_ws_passthrough_routes.py b/tests/test_litellm/proxy/pass_through_endpoints/test_deepgram_ws_passthrough_routes.pyindex 1c21b75804e..85baaacf1e9 100644--- a/tests/test_litellm/proxy/pass_through_endpoints/test_deepgram_ws_passthrough_routes.py+++ b/tests/test_litellm/proxy/pass_through_endpoints/test_deepgram_ws_passthrough_routes.py@@ -13,6 +13,7 @@ from fastapi.testclient import TestClientfrom starlette.routing import WebSocketRoutefrom starlette.websockets import WebSocketDisconnect+import litellmfrom litellm.caching.dual_cache import DualCachefrom litellm.proxy._lazy_features import LAZY_FEATURESfrom litellm.proxy._types import LiteLLMRoutes, UserAPIKeyAuth@@ -330,6 +331,7 @@ def test_deepgram_listen_authorizes_the_model_it_will_actually_send_upstream(que"""A key allowed only ``nova-2`` must not reach ``nova-3`` by leaving ``model`` out and letting the proxy fillin its default: the real key auth path must see the same model the upstream target will carry."""monkeypatch.delenv("DEEPGRAM_API_BASE", raising=False)+ monkeypatch.setattr(litellm, "max_budget", 0.0)cache = asyncio.run(_cache_restricted_key("sk-only-nova-2", ["nova-2"]))relay = _FakeRelay()client = TestClient(_app_with_relay(relay))