LocalAI/core/http/routes
Ettore Di Giacinto a53392f919
chore(refactor): drop duplicated shutdown logics (#3589)
* chore(refactor): drop duplicated shutdown logics

- Handle locking in Shutdown and CheckModelIsLoaded in a more go-idiomatic way
- Drop duplicated code and re-organize shutdown code

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* fix: drop leftover

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* chore: improve logging and add missing locks

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-09-17 16:51:40 +02:00
..
elevenlabs.go feat: auth v2 - supersedes #2894 (#3476) 2024-09-16 23:29:07 -04:00
explorer.go feat(explorer): make possible to run sync in a separate process (#3224) 2024-08-12 19:25:44 +02:00
jina.go feat: auth v2 - supersedes #2894 (#3476) 2024-09-16 23:29:07 -04:00
localai.go chore(refactor): drop duplicated shutdown logics (#3589) 2024-09-17 16:51:40 +02:00
openai.go feat: auth v2 - supersedes #2894 (#3476) 2024-09-16 23:29:07 -04:00
ui.go feat: auth v2 - supersedes #2894 (#3476) 2024-09-16 23:29:07 -04:00