-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug - [InferenceClient] - use proxy set in var env (#2421)
* set trust_env in aiohttp at True * handle trust_env and set trust_env parameter in aiohttp client for Async and request client for Sync * handle trust_env and set trust_env parameter in aiohttp client for Async and request client for Sync * handle trust_env and set trust_env parameter in aiohttp client for Async and request client for Sync * Update src/huggingface_hub/inference/_generated/_async_client.py Co-authored-by: Benjamin BERNARD <[email protected]> * do not modify InferenceClient * Add trust_env parameter only in AsyncInferenceClient + respect proxy * document proxies and trust_env parameters * remove newlines --------- Co-authored-by: Benjamin BERNARD <[email protected]> Co-authored-by: Lucain Pouget <[email protected]>
- Loading branch information
1 parent
9a9b8c1
commit c9c39b8
Showing
3 changed files
with
89 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters