Skip to content

Provide alternative when warning on use_auth_token#27105

Merged
Wauplin merged 1 commit intomainfrom
give-alternative-in-warning-on-use-auth-token
Oct 27, 2023
Merged

Provide alternative when warning on use_auth_token#27105
Wauplin merged 1 commit intomainfrom
give-alternative-in-warning-on-use-auth-token

Conversation

@Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Oct 27, 2023

This PR updates the warning message when a user uses use_auth_token instead of token. In some cases, the deprecation warning states that use_auth_token is deprecated without mentioning token as an alternative. This PR fixes this.

Opened this issue after some users got confused they wouldn't be able to authenticate anymore (see Forum). cc @radames who pinged me there.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 27, 2023

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

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

Much better than what I did ❤️ , thank you a lot!

@Wauplin
Copy link
Contributor Author

Wauplin commented Oct 27, 2023

Simply added 4 words, nothing more 😉

Copy link
Contributor

@amyeroberts amyeroberts 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 adding this and improving the warnings!

@Wauplin
Copy link
Contributor Author

Wauplin commented Oct 27, 2023

Well, 3 reviews so I'll merged! 😄 Thanks everyone :)

@Wauplin Wauplin merged commit 66b088f into main Oct 27, 2023
@Wauplin Wauplin deleted the give-alternative-in-warning-on-use-auth-token branch October 27, 2023 12:32
@radames
Copy link
Contributor

radames commented Oct 27, 2023

thanks for the prompt response @Wauplin

EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 19, 2023
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.

6 participants