feat: add timeout param to all chat model providers#785
Merged
radu-mocanu merged 1 commit intomainfrom Apr 20, 2026
Merged
Conversation
f9f4ef1 to
49f03e0
Compare
ionmincu
approved these changes
Apr 20, 2026
ec99e3a to
a81a04b
Compare
a81a04b to
bc3a744
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
timeout: float | None = NonetoUiPathChatOpenAI,UiPathChatVertex,UiPathChatBedrockConverse,UiPathChatBedrockget_default_timeout()helper readingUIPATH_TIMEOUT_SECONDS, defaulting to 300s (up from 120s)super().__init__()so the openai sdk enforces it per-request (httpx client-level alone was silently ignored)HttpOptions.timeout(ms) so google-genai sdk enforces it per-request (same override pattern)test-llm-modelssample for comparing models side-by-side with timeout testingtests/chat/test_timeout.pycovering all three providers