-
Notifications
You must be signed in to change notification settings - Fork 79
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
Convenient request max retries setup #87
Comments
Hi, you can configure this by changing the We should probably add this to the README... |
Thanks for your response! Yeah, but it involves changing the library code, which I would prefer not to do. I've seen that the |
What do you mean by "changing the library code"? You can use it like this in your application code: import deepl
deepl.http_client.max_network_retries = 2
translator = deepl.Translator('my_auth_key') # Will use 2 retries |
Yeah, you are entirely right, sorry for my misunderstanding. Thank you for your help! |
Hello,
are there any plans to allow setting a maximum number of request retries in
deepl.Translator()
args? Or is there any convenient way I can do it by myself without touching the library code?The text was updated successfully, but these errors were encountered: