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

Rename the env variable HF_ENDPOINT. #819

Merged
merged 3 commits into from
Apr 5, 2022
Merged

Rename the env variable HF_ENDPOINT. #819

merged 3 commits into from
Apr 5, 2022

Conversation

@Narsil Narsil requested a review from LysandreJik April 5, 2022 08:07
@Narsil
Copy link
Contributor Author

Narsil commented Apr 5, 2022

Pinging @SBrandeis since your made the initial modification so you are aware of this name change.

Is it OK to change the name here ?

@SBrandeis
Copy link
Contributor

Yes @Narsil that is fine

@@ -467,7 +467,7 @@ def erase_from_credential_store(username=None):
class HfApi:
def __init__(self, endpoint=None):
self.endpoint = (
endpoint if endpoint is not None else os.getenv("HF_ENDPOINT", ENDPOINT)
endpoint if endpoint is not None else ENDPOINT
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed this, since ENDPOINT is already inheriting from the same env variable, to reduce the potential from divergence.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 5, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@osanseviero osanseviero left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you!

@adrinjalali adrinjalali merged commit bee7f64 into main Apr 5, 2022
@adrinjalali adrinjalali deleted the env_hf_endpoint branch April 5, 2022 08:34
@adrinjalali
Copy link
Contributor

Thanks for the fix @Narsil . It'd be nice if for future PRs you'd create the feature branches on your fork rather than the main repo 😊

@Narsil
Copy link
Contributor Author

Narsil commented Apr 5, 2022

Thanks for the fix @Narsil . It'd be nice if for future PRs you'd create the feature branches on your fork rather than the main repo blush

Ok, thanks for the heads up.

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.

Is it possible to make HF_ENDPOINT endpoint overridable in environment variable ?
5 participants