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 get parsed form

Otavio Brito666641b2d451
diff --git a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
index f4a963d4f46..5e171af5252 100644
--- a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
+++ b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
@@ -142,7 +142,7 @@ async def llm_passthrough_factory_proxy_route(
if "multipart/form-data" not in request.headers.get("content-type", ""):
_request_body = await request.json()
else:
- _request_body = dict(request._form)
+ _request_body = await get_form_data(request)
if _request_body.get("stream"):
is_streaming_request = True