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

Update InferenceClient docstring to reflect that token=False is no longer accepted #2853

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abidlabs
Copy link
Member

@abidlabs abidlabs commented Feb 12, 2025

Just wondering -- is there still any way not to pass in the local hf token?

@abidlabs abidlabs requested a review from Wauplin February 12, 2025 21:59
@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.

@hanouticelina
Copy link
Contributor

@abidlabs in practice, HF Inference API still supports passing token=False. We removed that to simplify the logic by avoiding the handle of boolean token for external providers.

@julien-c
Copy link
Member

but the HF Inference API requires a token, right? (or if not, it will very very soon)

@Wauplin
Copy link
Contributor

Wauplin commented Feb 13, 2025

I noticed our internal logic for token=False doesn't really work at the moment (local token is still passed). I'll fix this in a follow-up PR.

And yes with the new inference providers, even HF Inference requires a token now.

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.

5 participants