mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-10 19:04:29 +00:00
5c4915ad0d
- 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
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.