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

feat: ✨ allow passing secrets to the inference endpoint client #2486

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

LuisBlanche
Copy link
Contributor

Solves: #2485

Added the secrets argument to

  • create_inference_endpoint
  • update_inference_endpoint
  • InferenceEndpoint.update

added the secrets argument to create_inference_endpoint, update_inference_endpoint and InferenceEndpoint.update
Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks for the quick PR @LuisBlanche! I left a few minor comments, otherwise everything looks good to me :) Once those are merged and the CI is green, I think we should be good to go!

src/huggingface_hub/hf_api.py Outdated Show resolved Hide resolved
src/huggingface_hub/_inference_endpoints.py Outdated Show resolved Hide resolved
src/huggingface_hub/_inference_endpoints.py Outdated Show resolved Hide resolved
src/huggingface_hub/hf_api.py Outdated Show resolved Hide resolved
src/huggingface_hub/hf_api.py Outdated Show resolved Hide resolved
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Failing tests in the CI are unrelated so let's merge this! Thanks again for the quick contribution 🤗 Your changes will be shipped in next release. In the meantime, you can already use them if you install from source.

@Wauplin Wauplin merged commit 6438044 into huggingface:main Aug 23, 2024
12 of 14 checks passed
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.

3 participants