LocalAI/core
Ettore Di Giacinto c844b7ac58
feat: disable force eviction (#7725)
* feat: allow to set forcing backends eviction while requests are in flight

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

* feat: try to make the request sit and retry if eviction couldn't be done

Otherwise calls that in order to pass would need to shutdown other
backends would just fail.

In this way instead we make the request sit and retry eviction until it
succeeds. The thresholds can be configured by the user.

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

* add tests

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

* expose settings to CLI

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

* Update docs

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

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-12-25 14:26:18 +01:00
..
application feat: disable force eviction (#7725) 2025-12-25 14:26:18 +01:00
backend chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
cli feat: disable force eviction (#7725) 2025-12-25 14:26:18 +01:00
clients feat(store): add Golang client (#1977) 2024-04-16 15:54:14 +02:00
config feat: disable force eviction (#7725) 2025-12-25 14:26:18 +01:00
dependencies_manager fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00
explorer chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
gallery chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
http feat: disable force eviction (#7725) 2025-12-25 14:26:18 +01:00
p2p chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
schema chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
services chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
startup chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
templates chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00