mirror of
https://github.com/mudler/LocalAI.git
synced 2025-12-30 22:20:20 -06: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:
@@ -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, "@") {
|
||||
|
||||
Reference in New Issue
Block a user