mirror of
https://github.com/mudler/LocalAI
synced 2026-05-24 09:28:23 +00:00
fix(uri): consider subfolders when expanding huggingface URLs (#7634)
Update uri.go Signed-off-by: mintyleaf <mintyleafdev@gmail.com>
This commit is contained in:
parent
5515119a7e
commit
247983265d
1 changed files with 1 additions and 1 deletions
|
|
@ -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, "@") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue