fix(uri): consider subfolders when expanding huggingface URLs (#7634)

Update uri.go

Signed-off-by: mintyleaf <mintyleafdev@gmail.com>
This commit is contained in:
mintyleaf
2025-12-18 12:12:16 +04:00
committed by GitHub
parent 5515119a7e
commit 247983265d

View File

@@ -225,7 +225,7 @@ func (s URI) ResolveURL() string {
repo := repoPieces[1]
branch := "main"
filepath := repoPieces[2]
filepath := strings.Join(repoPieces[2:], "/")
if len(repoID) > 1 {
if strings.Contains(repo, "@") {