litellm/tests/unit/llms/hosted_vllm/chat
quietjules c9fc315ce7
fix(hosted_vllm,azure): leave the caller's messages untouched when building the chat request (#51841)
* fix(hosted_vllm,azure): leave the caller's messages untouched when building the chat request

hosted_vllm and Azure rewrote the caller's nested message objects while building the request, so a Router fallback reused the rewritten parts. A video file part reached a Gemini fallback as video_url, which Gemini drops. Both now build new message dicts and content parts and send the same request body as before

* test(hosted_vllm,azure): type the caller-messages regression tests

* test(hosted_vllm): drop the async variant of the caller-messages test

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-24 00:22:33 +00:00
..
__init__.py test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
test_hosted_vllm_chat_transformation.py fix(hosted_vllm,azure): leave the caller's messages untouched when building the chat request (#51841) 2026-11-24 00:22:33 +00:00