litellm/tests/unit/llms/watsonx
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
..
audio_transcription fix(audio-transcription): keep transcripts out of transcription error messages (#50137) 2026-11-05 18:07:15 -08:00
completion chore(typing): clear 670 basedpyright Any errors by validating provider payloads at the boundary (#45388) 2026-10-13 15:35:23 -07:00
embed test: migrate local_testing SDK and provider tests out of build_and_test (#45760) 2026-10-10 23:14:25 +00:00
passthrough
rerank refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
__init__.py
test_watsonx.py fix(openai_like): honor the deployment timeout and stream_timeout on async streams (#53442) 2026-11-22 21:52:59 +00:00
test_watsonx_common_utils.py