LocalAI/core/http
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
..
ctx feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
elements feat(gallery): lazy load images (#3246) 2024-08-14 12:53:42 +02:00
endpoints feat: extract output with regexes from LLMs (#3491) 2024-09-13 13:27:36 +02:00
middleware feat: auth v2 - supersedes #2894 (#3476) 2024-09-16 23:29:07 -04:00
routes chore(refactor): drop duplicated shutdown logics (#3589) 2024-09-17 16:51:40 +02:00
static chore(ux): allow to create and drag dots in the animation (#3287) 2024-08-19 20:40:55 +02:00
views chore(anime.js): drop unused (#3351) 2024-08-21 13:10:09 +02:00
app_test.go feat: add endpoint to list system informations (#3449) 2024-09-05 20:44:30 +02:00
app.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
http_suite_test.go fix: rename fiber entrypoint from http/api to http/app (#2096) 2024-04-21 22:39:28 +02:00
render.go rf: centralize base64 image handling (#2595) 2024-06-24 08:34:36 +02:00