Skip to content

Add Retry Feature #44

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 2 commits into from
Mar 8, 2025

Conversation

FabrizioBrancati
Copy link
Contributor

I noticed that sometimes, OpenAI API goes into a timeout, and the translation doesn't happen.
I fixed this with a basic retry feature based on repeat-while.

I also added a new Command Line option retry (short version r) to pass this value.
The default value is 1 so that the behavior is the same as before.

Copy link
Contributor

@andrewtheis andrewtheis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea!

@andrewtheis andrewtheis merged commit 8fff0da into hidden-spectrum:develop Mar 8, 2025
1 check passed
@FabrizioBrancati FabrizioBrancati deleted the feature/retry branch March 9, 2025 10:11
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