-
Notifications
You must be signed in to change notification settings - Fork 537
Enhance auth message with API instructions #674
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
base: main
Are you sure you want to change the base?
Conversation
Updated the authentication message to include API usage instructions.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request enhances the authentication error message by adding instructions on how to use the TabPFN API as an alternative to downloading models from Hugging Face. This is a helpful addition for users. My review includes a minor suggestion to improve the formatting of the new message by removing an unnecessary trailing space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request enhances the authentication error message in the model loading functionality by adding a reference to the TabPFN API as an alternative approach to bypass HuggingFace token requirements. The change aims to make users aware that they can use the API instead of dealing with gated model authentication.
- Adds alternative API usage instructions to the authentication error message
- Provides a documentation link to the TabPFN API quickstart guide
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/tabpfn/model_loading.py
Outdated
| " with a read token).\n\n" | ||
| "For detailed instructions, see " | ||
| "https://docs.priorlabs.ai/how-to-access-gated-models" | ||
| "https://docs.priorlabs.ai/how-to-access-gated-models \n" |
Copilot
AI
Dec 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message formatting has inconsistencies and trailing whitespace. Line 266 has a trailing space before the newline character, and the new alternative text lacks proper formatting to match the rest of the message structure. Consider formatting this more consistently with the rest of the message, adding a blank line before "Alternative:" for better readability, and removing the trailing space on line 266.
| "https://docs.priorlabs.ai/how-to-access-gated-models \n" | |
| "https://docs.priorlabs.ai/how-to-access-gated-models\n" | |
| "\n" |
klemens-floege
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Updated the authentication message to include API usage instructions to encourage API usage and show way to bypass HF token etc.
Issue
Please link the corresponding GitHub issue. If an issue does not already exist,
please open one to describe the bug or feature request before creating a pull request.
This allows us to discuss the proposal and helps avoid unnecessary work.
Motivation and Context
Public API Changes
How Has This Been Tested?
Checklist
CHANGELOG.md(if relevant for users).