Skip to content

Allow overriding model download URL via LAMBEQ_MODELS_URL - #259

Open
iwang-1 wants to merge 1 commit into
Quantinuum:mainfrom
iwang-1:fix-models-url-override
Open

Allow overriding model download URL via LAMBEQ_MODELS_URL#259
iwang-1 wants to merge 1 commit into
Quantinuum:mainfrom
iwang-1:fix-models-url-override

Conversation

@iwang-1

@iwang-1 iwang-1 commented Jul 10, 2026

Copy link
Copy Markdown

Fixes #253, #254, #257.

The model download host is hardcoded to qnlp.cambridgequantum.com, which is no longer reachable, so BobcatParser() / OncillaParser() fail on a fresh install.

This reads the base URL from a new LAMBEQ_MODELS_URL environment variable when set, defaulting to the existing value. Users can point at a mirror or the updated host without waiting for a release. get_url() reads the variable at call time; a trailing slash is handled. Adds two tests.

Happy to also update the default URL directly if a maintainer can share the current model-hosting location.

The hardcoded qnlp.cambridgequantum.com host is unreachable (issues Quantinuum#253,
Quantinuum#254, Quantinuum#257), so BobcatParser/OncillaParser fail on a fresh install. Read the
base URL from the LAMBEQ_MODELS_URL environment variable when set (defaulting
to the existing value), letting users point at a mirror or updated host
without waiting for a release.
@iwang-1 iwang-1 changed the title Allow overriding model download URL via LAMBEQ_MODELS_URL Allow overriding model download URL via LAMBEQ_MODELS_URL Jul 10, 2026
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.

Unable to reach URL https://qnlp.cambridgequantum.com/

1 participant