Skip to content

Conversation

@jugaldb
Copy link
Contributor

@jugaldb jugaldb commented Aug 13, 2025

[Feat] Add connect_timeout parameter for improved connection handling

Relevant issues

Fixes #13524

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature

Changes

* Introduced connect_timeout parameter across various completion methods in litellm to allow for more granular control over connection timeouts.
* Updated Azure and OpenAI classes to utilize connect_timeout in their respective client initializations.
* Enhanced timeout handling in BaseAzureLLM to support separate connect timeout settings.
* Ensured backward compatibility by maintaining existing timeout functionality while adding new connect_timeout logic.
@vercel
Copy link

vercel bot commented Aug 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
litellm Ready Preview Comment Aug 13, 2025 10:55pm

@jugaldb jugaldb closed this Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Allow separate timeout setting for connection handshaking (connect) and general request timeout

2 participants