mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-25 21:15:00 +00:00
fix: match lowercase of the input, not of the model
This commit is contained in:
parent
b09bae3443
commit
63b01199fe
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ func InstallModelFromGalleryByName(galleries []Gallery, name string, basePath st
|
||||||
name = strings.ReplaceAll(name, string(os.PathSeparator), "__")
|
name = strings.ReplaceAll(name, string(os.PathSeparator), "__")
|
||||||
var model *GalleryModel
|
var model *GalleryModel
|
||||||
for _, m := range models {
|
for _, m := range models {
|
||||||
if name == m.Name || name == strings.ToLower(m.Name) {
|
if name == m.Name || m.Name == strings.ToLower(name) {
|
||||||
model = m
|
model = m
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue