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): use immutable query fallback
Devin AI164e43f2e204
diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.pyindex 031b77e691b..b4025637f46 100644--- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py+++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py@@ -9,6 +9,7 @@ from collections.abc import AsyncGenerator, Callable, Iterable, Mapping, Sequencfrom dataclasses import dataclassfrom datetime import datetimefrom itertools import groupby+from types import MappingProxyTypefrom typing import TYPE_CHECKING, Any, Final, TypedDict, castfrom urllib.parse import urlencode, urlparse@@ -1188,7 +1189,7 @@ async def pass_through_request(query=urlencode(HttpPassThroughEndpointHelpers.get_merged_query_parameters(existing_url=url,- request_query_params=requested_query_params or {},+ request_query_params=requested_query_params or MappingProxyType({}),default_query_params=default_query_params,)).encode("ascii")