LocalAI/core/http
LocalAI [bot] 9e1b0d0c82
fix: Add timeout-based wait for model deletion completion (#8756)
* fix: Add timeout-based wait for model deletion completion

- Replace simple polling loop with context-based timeout (5 minutes)
- Use select statement for cleaner timeout handling
- Added proper logging for timeout case
- This addresses the code review comment about using context with timeout instead of dangerous polling approach

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

* fix: replace goto statements with break in model deletion loop (fixes CI compilation error)

Signed-off-by: LocalAI [bot] <localai-bot@noreply.github.com>

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

---------

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
Signed-off-by: LocalAI [bot] <localai-bot@noreply.github.com>
Co-authored-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: LocalAI [bot] <localai-bot@noreply.github.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2026-03-06 01:07:15 +01:00
..
endpoints feat: pass-by metadata to predict options (#8795) 2026-03-05 22:50:10 +01:00
middleware feat: add VoxCPM tts backend (#8109) 2026-01-28 14:44:04 +01:00
react-ui fix(ui): fix /app redirect 2026-03-05 21:43:46 +00:00
routes fix: Add timeout-based wait for model deletion completion (#8756) 2026-03-06 01:07:15 +01:00
static feat: Rename 'Whisper' model type to 'STT' in UI (#8785) 2026-03-05 09:51:47 +01:00
views feat: Rename 'Whisper' model type to 'STT' in UI (#8785) 2026-03-05 09:51:47 +01:00
app.go fix(ui): fix /app redirect 2026-03-05 21:43:46 +00:00
app_test.go chore(ci): update environment variable for external backend 2026-03-03 22:12:37 +01:00
explorer.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
http_suite_test.go feat(api): add support for open responses specification (#8063) 2026-01-17 22:11:47 +01:00
openresponses_test.go feat(api): add support for open responses specification (#8063) 2026-01-17 22:11:47 +01:00
render.go feat: migrate to echo and enable cancellation of non-streaming requests (#7270) 2025-11-14 22:57:53 +01:00