mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
feat: add gallery repositories
Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
parent
2a45a99737
commit
1c30c2446c
7 changed files with 231 additions and 69 deletions
|
@ -104,7 +104,10 @@ func App(opts ...AppOption) (*fiber.App, error) {
|
|||
// LocalAI API endpoints
|
||||
applier := newGalleryApplier(options.loader.ModelPath)
|
||||
applier.start(options.context, cm)
|
||||
app.Post("/models/apply", applyModelGallery(options.loader.ModelPath, cm, applier.C))
|
||||
|
||||
app.Post("/models/apply", applyModelGallery(options.loader.ModelPath, cm, applier.C, options.galleries))
|
||||
app.Post("/models/list", listModelFromGallery(options.galleries))
|
||||
|
||||
app.Get("/models/jobs/:uuid", getOpStatus(applier))
|
||||
|
||||
// openAI compatible API endpoint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue