litellm/tests/unit/llms/openai_like/chat
owen-hj 4bd68915a4
fix(openai_like): honor the deployment timeout and stream_timeout on async streams (#53442)
* fix(openai_like): honor the deployment timeout and stream_timeout on async streams

* fix(openai_like): send the resolved timeout on sync calls that pass their own client

* fix(openai_like): keep timeouts after a reconnect and on Model Garden sync calls as 408

The async non-stream handler now also maps a raw httpx timeout, which the
HTTP client's reconnect retry raises unconverted. Model Garden sync calls
keep the handler's status instead of wrapping every error as a 500, as async
calls already did. A WatsonX test checks stream_timeout reaches the request

* fix(vertex_ai): keep Model Garden sync stream errors' status

* test(openai_like): type the streamed chunks in the timeout tests

Main's new make_call helper test now sees the timeout parameter this branch added, which grew reportUnknownArgumentType by one. Typing the chunk lists in this branch's own stream checks pays it back

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-22 21:52:59 +00:00
..
__init__.py test: add package initializers to migrated unit test directories 2026-09-20 11:52:07 +00:00
test_openai_like_chat_handler.py fix(openai_like): honor the deployment timeout and stream_timeout on async streams (#53442) 2026-11-22 21:52:59 +00:00
test_openai_like_chat_transformation.py fix(openai_like)!: surface provider response headers on non-streaming chat completions (#46928) 2026-10-16 17:25:50 -07:00