Skip to content

Fix litellm retries #8161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 2, 2025
Merged

Fix litellm retries #8161

merged 6 commits into from
May 2, 2025

Conversation

chenmoneygithub
Copy link
Collaborator

@chenmoneygithub chenmoneygithub commented May 2, 2025

retry_policy is no longer a useful arg in litellm.completion, and we should use num_retries instead.

According to litellm's doc page:

num_retries: int (optional) - The number of times to retry the API call if an APIError, TimeoutError or ServiceUnavailableError occurs

so it is sufficient for DSPy need.

@chenmoneygithub chenmoneygithub marked this pull request as draft May 2, 2025 17:21
@chenmoneygithub chenmoneygithub changed the title fix litellm retries Fix litellm retries May 2, 2025
@chenmoneygithub chenmoneygithub marked this pull request as ready for review May 2, 2025 20:36
@chenmoneygithub chenmoneygithub requested a review from okhat May 2, 2025 20:36
@okhat okhat merged commit be1614a into stanfordnlp:main May 2, 2025
3 checks passed
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.

2 participants