Skip to content

Add the 'env' parameter to creating/updating Inference Endpoints #3045

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomaarsen
Copy link
Member

Hello!

Pull Request overview

  • Add the 'env' parameter to creating/updating Inference Endpoints

Details

See discussion: https://huggingface.slack.com/archives/C016D661PAN/p1746191822733239?thread_ts=1746187906.460849&cid=C016D661PAN

Here's the API Spec: https://api.endpoints.huggingface.cloud/#post-/v2/endpoint/-namespace-

In short: I can pass secrets, but I cannot pass env environment variables. It's not extremely critical as using secrets instead works fine for my purposes as well, but env would be more fitting, and it makes sense to expose whatever the API Spec supports in the huggingface_hub functions.

  • Tom Aarsen

@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
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

let wait for a maintainer review but LGTM

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.

4 participants