Skip to content

Conversation

@noahho
Copy link
Collaborator

@noahho noahho commented Dec 14, 2025

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

  • No Public API changes
  • Yes, Public API changes (Details below)

How Has This Been Tested?


Checklist

  • The changes have been tested locally.
  • Documentation has been updated (if the public API or usage changes).
  • A entry has been added to CHANGELOG.md (if relevant for users).
  • The code follows the project's style guidelines.
  • I have considered the impact of these changes on the public API.

Updated the authentication message to include API usage instructions.
@noahho noahho requested a review from a team as a code owner December 14, 2025 14:04
@noahho noahho requested review from Copilot and klemens-floege and removed request for a team December 14, 2025 14:04
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

Copy link
Contributor

Copilot AI left a 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.

" 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"
Copy link

Copilot AI Dec 14, 2025

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.

Suggested change
"https://docs.priorlabs.ai/how-to-access-gated-models \n"
"https://docs.priorlabs.ai/how-to-access-gated-models\n"
"\n"

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@klemens-floege klemens-floege left a 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>
@noahho noahho enabled auto-merge (squash) December 16, 2025 15:09
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.

3 participants