-
Notifications
You must be signed in to change notification settings - Fork 571
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
Adding the ability to configure the timeout of get request #1720
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Shahafgo! Thanks for this very clean PR!
I reviewed and made some small comments. Mostly to add a bit more explanation in the docs + remove some duplicated logic. I like how you separated default value and user value. Looks good overall :)
info["HF_HUB_ETAG_TIMEOUT"] = constants.HF_HUB_ETAG_TIMEOUT | ||
info["HF_HUB_DOWNLOAD_TIMEOUT"] = constants.HF_HUB_DOWNLOAD_TIMEOUT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really like this, thank you!
Update HF_HUB_ETAG_TIMEOUT documentation Co-authored-by: Lucain <lucainp@gmail.com>
Update HF_HUB_DOWNLOAD_TIMEOUT documentation Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
Co-authored-by: Lucain <lucainp@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
Spotted 2 typos but otherwise let's merge this 🚀
The documentation is not available anymore as the PR was closed or merged. |
And it's merged! Thanks for the work @Shahafgo ! 🚀 |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
This PR purpose is to adding the ability to configure the timeout of requests during the download file operation