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.
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.
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" |
There was a problem hiding this comment.
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" |
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).