litellm/tests/test_litellm/proxy/pass_through_endpoints
shivam 5c4915ad0d
fix(proxy): pass-through multipart uploads and Bedrock custom body
- Route multipart forwarding on forward_multipart instead of empty _parsed_body
  so litellm_logging_obj no longer forces json= for file uploads.
- Remove custom_body from pass-through endpoint signatures; FastAPI treated it
  as a JSON body and rejected multipart before the handler ran. Bedrock passes
  JSON via request.state (LITELLM_PASS_THROUGH_CUSTOM_BODY_STATE_KEY).
- Use build_request + send(stream=True) for streaming multipart; httpx 0.28
  AsyncClient.request does not accept stream=.
- Add regression test for non-empty _parsed_body multipart path; update Bedrock
  custom-body test and query-params test for forward_multipart.

Made-with: Cursor
2026-04-09 19:43:57 -07:00
..
llm_provider_handlers fix: mock completion_cost in routing test and restore helper consistency 2026-03-11 20:05:40 -07:00
test_llm_pass_through_endpoints.py Development environment setup (#22432) 2026-02-28 14:50:06 -08:00
test_method_specific_routing.py Add test got method speicifc routing 2026-02-19 11:58:48 +05:30
test_pass_through_endpoints.py fix(proxy): pass-through multipart uploads and Bedrock custom body 2026-04-09 19:43:57 -07:00
test_passthrough_endpoints_common_utils.py
test_passthrough_guardrails_field_targeting.py chore: cleanup unused scripts and fix misplaced test file (#17611) 2025-12-08 19:00:55 -08:00
test_passthrough_guardrails.py [Feat] Add guardrails for pass through endpoints (#17221) 2025-11-27 12:06:53 -08:00
test_vertex_ai_batch_passthrough.py fix: stabilize 5 CI test failures 2026-03-13 01:03:35 +00:00
test_vertex_passthrough_load_balancing.py Fix test_vertex_passthrough_forwards_anthropic_beta_header 2026-02-26 13:06:25 +05:30