-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
LocalAI version:
verison 3.11.0
Environment, CPU architecture, OS, and Version:

Describe the bug
LocalAI crashes upon downloading nanbiege4.1-3b-18
To Reproduce
originally used the sh install, but then switched to the binary upon it not working either, tried installing the same model the same way
Expected behavior
Was supposed to download model nanbiege4.1-3b-18
Logs
panic: reflect.Value.MapIndex: value of type interface {} is not assignable to type string
goroutine 53 [running]:
reflect.Value.assignTo({0x1d77fe0?, 0xc000d183e0?, 0xc001fc8b58?}, {0x218fedf, 0x16}, 0x1ce5980, 0x0)
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/reflect/value.go:3072 +0x28b
reflect.Value.MapIndex({0x1e28fe0?, 0xc00170e300?, 0x515595?}, {0x1d77fe0, 0xc000d183e0, 0x94})
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/reflect/map_swiss.go:163 +0xe8
dario.cat/mergo.deepMerge({0x1e28fe0?, 0xc00170e300?, 0xcc0093d2000?}, {0x1e29f40?, 0xc000b8e8d0?, 0x98?}, 0xc000365138, 0x1, 0xc000d120d8)
/home/runner/go/pkg/mod/dario.cat/mergo@v1.0.2/merge.go:125 +0x18b2
dario.cat/mergo.deepMerge({0x1e28fe0?, 0xc0008b2000?, 0x1e28fe0?}, {0x1e28fe0?, 0xc000b8e8a0?, 0x80d6bc?}, 0xc000365138, 0x0, 0xc000d120d8)
/home/runner/go/pkg/mod/dario.cat/mergo@v1.0.2/merge.go:153 +0x1c0e
dario.cat/mergo.merge({0x1ca7420, 0xc0008b2000}, {0x1e28fe0, 0xc000b8e8a0}, {0xc0003653c0, 0x1, 0xc00102bb80?})
/home/runner/go/pkg/mod/dario.cat/mergo@v1.0.2/merge.go:395 +0x2ef
dario.cat/mergo.Merge(...)
/home/runner/go/pkg/mod/dario.cat/mergo@v1.0.2/merge.go:319
github.com/mudler/LocalAI/core/gallery.InstallModel({0x3ce8210, 0xc00124e370}, 0x0?, {0xc0012dda10, 0x11}, 0xc0007dedc0, 0xc000b8e8a0, 0xc000b98678, 0x1)
/home/runner/work/LocalAI/LocalAI/core/gallery/models.go:251 +0xc65
github.com/mudler/LocalAI/core/gallery.InstallModelFromGallery.func1(0xc00203c340)
/home/runner/work/LocalAI/LocalAI/core/gallery/models.go:132 +0x8be
github.com/mudler/LocalAI/core/gallery.InstallModelFromGallery({_, }, {, _, }, {, _, _}, _, 0xc0010e21e0, ...)
/home/runner/work/LocalAI/LocalAI/core/gallery/models.go:158 +0x129
github.com/mudler/LocalAI/core/services.processModelOperation(0xc00021fb00, 0xc0006460f0, 0xc0010e21e0, 0x1, 0x1, 0xc000b98678)
/home/runner/work/LocalAI/LocalAI/core/services/models.go:221 +0x1c5
github.com/mudler/LocalAI/core/services.(*GalleryService).modelHandler(0xc00043ef00, 0xc00021fb00, 0xc00040dca0, 0xc0006460f0)
/home/runner/work/LocalAI/LocalAI/core/services/models.go:57 +0x18c
github.com/mudler/LocalAI/core/services.(*GalleryService).Start.func3()
/home/runner/work/LocalAI/LocalAI/core/services/gallery.go:156 +0x3f5
created by github.com/mudler/LocalAI/core/services.(*GalleryService).Start in goroutine 1
/home/runner/work/LocalAI/LocalAI/core/services/gallery.go:129 +0x13c