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
fix(passthrough): match deepgram listen routes served under a path prefix
yassin84f7adec2e4d
diff --git a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/deepgram_listen_passthrough_logging_handler.py b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/deepgram_listen_passthrough_logging_handler.pyindex fc0af400477..c0953ae7b85 100644--- a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/deepgram_listen_passthrough_logging_handler.py+++ b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/deepgram_listen_passthrough_logging_handler.py@@ -57,7 +57,7 @@ class DeepgramListenPassthroughLoggingHandler:@staticmethoddef is_deepgram_listen_route(url_route: str) -> bool:path: Final = urlparse(url_route).path- return path.startswith("/deepgram/") and path.endswith(DEEPGRAM_LISTEN_ROUTE_SUFFIX)+ return "/deepgram/" in path and path.endswith(DEEPGRAM_LISTEN_ROUTE_SUFFIX)def deepgram_listen_passthrough_handler(self,diff --git a/tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_deepgram_listen_passthrough_logging_handler.py b/tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_deepgram_listen_passthrough_logging_handler.pyindex a6133a7cf99..2ae56709b11 100644--- a/tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_deepgram_listen_passthrough_logging_handler.py+++ b/tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_deepgram_listen_passthrough_logging_handler.py@@ -42,6 +42,7 @@ def _metadata(duration: object, channels: int = 1) -> dict[str, object]:("/deepgram/v1/listen", True),("/deepgram/listen", True),("/deepgram/v1/listen?model=nova-3", True),+ ("/litellm/deepgram/v1/listen", True),("/deepgram/v1/speak", False),("/deepgram/v1/listen/extra", False),("/openai/v1/realtime", False),