Skip to content
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

Retry Mechanism to Handle Different Error Types #508

Open
ChenZiHong-Gavin opened this issue Dec 25, 2024 · 0 comments
Open

Retry Mechanism to Handle Different Error Types #508

ChenZiHong-Gavin opened this issue Dec 25, 2024 · 0 comments

Comments

@ChenZiHong-Gavin
Copy link
Contributor

I've noticed that the current implementation assumes that all models return the same error types as OpenAI, specifically RateLimitError, APIConnectionError, and Timeout. This assumption might not hold true for all models, especially when integrating with different APIs or services.
for example, ollama model:
image

If so, I may submit a PR to fix this.

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

No branches or pull requests

1 participant