From d1d528ffc00cc14dac380a40a495d62a431f5642 Mon Sep 17 00:00:00 2001 From: Noah Hollmann Date: Sun, 14 Dec 2025 15:04:16 +0100 Subject: [PATCH 1/2] Enhance auth message with API instructions Updated the authentication message to include API usage instructions. --- src/tabpfn/model_loading.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tabpfn/model_loading.py b/src/tabpfn/model_loading.py index f43cab97e..94391a169 100644 --- a/src/tabpfn/model_loading.py +++ b/src/tabpfn/model_loading.py @@ -263,7 +263,9 @@ def _try_huggingface_downloads( "(Alternatively, you can set the HF_TOKEN environment variable" " 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" + "Alternative: use the TabPFN API instead:\n" + "https://docs.priorlabs.ai/quickstart#tabpfn-api" ) raise RuntimeError(auth_message) # noqa: B904 raise e From 60b126d53f0df790e16fa998ae54c2e13e7fa98d Mon Sep 17 00:00:00 2001 From: Noah Hollmann Date: Tue, 16 Dec 2025 16:09:15 +0100 Subject: [PATCH 2/2] Update src/tabpfn/model_loading.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/tabpfn/model_loading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabpfn/model_loading.py b/src/tabpfn/model_loading.py index 94391a169..fa1f0535a 100644 --- a/src/tabpfn/model_loading.py +++ b/src/tabpfn/model_loading.py @@ -263,7 +263,7 @@ def _try_huggingface_downloads( "(Alternatively, you can set the HF_TOKEN environment variable" " with a read token).\n\n" "For detailed instructions, see " - "https://docs.priorlabs.ai/how-to-access-gated-models \n" + "https://docs.priorlabs.ai/how-to-access-gated-models\n" "Alternative: use the TabPFN API instead:\n" "https://docs.priorlabs.ai/quickstart#tabpfn-api" )