mirror of
https://github.com/mudler/LocalAI.git
synced 2025-04-15 06:56:47 +00:00
fix: match lowercase of the input, not of the model
This commit is contained in:
parent
b09bae3443
commit
63b01199fe
@ -85,7 +85,7 @@ func InstallModelFromGalleryByName(galleries []Gallery, name string, basePath st
|
||||
name = strings.ReplaceAll(name, string(os.PathSeparator), "__")
|
||||
var model *GalleryModel
|
||||
for _, m := range models {
|
||||
if name == m.Name || name == strings.ToLower(m.Name) {
|
||||
if name == m.Name || m.Name == strings.ToLower(name) {
|
||||
model = m
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user