Skip to content

refactor: add timeout and max_retries for OpenAI SDK v1.0 compatibility#510

Open
Tushar9184 wants to merge 1 commit intoOpenBMB:chatdev1.0from
Tushar9184:chatdev1.0
Open

refactor: add timeout and max_retries for OpenAI SDK v1.0 compatibility#510
Tushar9184 wants to merge 1 commit intoOpenBMB:chatdev1.0from
Tushar9184:chatdev1.0

Conversation

@Tushar9184
Copy link

Hi @maintainer, thank you for the feedback.

I have updated the PR to target the chatdev1.0 branch. Since the proxies argument was already removed in this branch, I have implemented the following logical changes:

Added timeout=60.0 and max_retries=3 to the OpenAI client initialization to improve reliability and handle network latencies better in the new SDK.

Reverted the non-functional comment changes in embedding.py to keep the codebase clean.

I believe this makes the client more robust for users on the latest OpenAI SDK. Ready for your review

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.

1 participant