Accept a canonical Hugging Face model URL - #5
Open
kimminhyun-ai wants to merge 1 commit into
Open
kimminhyun-ai wants to merge 1 commit into
kimminhyun-ai wants to merge 1 commit into
Conversation
`ainize chat https://huggingface.co/gpt2` was refused. The parser required `<owner>/<model>`, but the oldest and most-used repositories on the Hub are canonical: they sit at the root with no owner, and their ID is the bare name a runtime serves them under. `gpt2`, `distilgpt2`, `bert-base-uncased` were all unreachable this way, and pointing at the rewritten `openai-community/gpt2` does not help — that is a different string, so a node actually serving `gpt2` answers "not served by this node". Both shapes now parse. Dataset, Space and docs paths are still refused, by a reserved-prefix list rather than by segment count, and credentials, queries and fragments are refused as before. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019hZqdLKnVfzvRf9mus6NNh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ainize chat https://huggingface.co/gpt2was refused with "Use https://huggingface.co//". The parser required two path segments, but the oldest and most-used repositories on the Hub are canonical: they sit at the root with no owner segment, and their ID is the bare name a runtime serves them under —gpt2,distilgpt2,bert-base-uncased.Pointing at the rewritten
openai-community/gpt2is not a workaround: that is a different string, so a node actually servinggpt2answers "requested model is not served by this node".Both shapes now parse. Dataset, Space and docs paths are still refused — by a reserved-prefix list rather than by segment count — and credentials, queries and fragments are refused as before. Existing rejection cases are unchanged and covered.
Found while running the 3rd-year certification metric 5 (model support count): three of the first ten target models were canonical repositories and could not be reached at all.
🤖 Generated with Claude Code
https://claude.ai/code/session_019hZqdLKnVfzvRf9mus6NNh