LocalAI/core
LocalAI [bot] 6d182281cf
fix: allow reranking models configured with known_usecases (#8681)
When a model is configured with 'known_usecases: [rerank]' in the YAML
config, the reranking endpoint was not being matched because:
1. The GuessUsecases function only checked for backend == 'rerankers'
2. The syncKnownUsecasesFromString() was not being called when loading
   configs via yaml.Unmarshal in readModelConfigsFromFile

This fix:
1. Updates GuessUsecases to also check if Reranking is explicitly set to
   true in the model config (in addition to checking backend type)
2. Adds syncKnownUsecasesFromString() calls after yaml.Unmarshal in
   readModelConfigsFromFile to ensure known_usecases are properly parsed

Fixes #8658

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: localai-bot <localai-bot@users.noreply.github.com>
2026-03-02 19:00:18 +01:00
..
application fix: improve watchdown logics (#8591) 2026-02-17 18:49:22 +01:00
backend feat(traces): Add backend traces (#8609) 2026-02-20 23:47:33 +01:00
cli fix: rename json_verbose to verbose_json (#8627) 2026-02-23 17:57:06 +00:00
clients feat(store): add Golang client (#1977) 2024-04-16 15:54:14 +02:00
config fix: allow reranking models configured with known_usecases (#8681) 2026-03-02 19:00: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 fix(gallery): clean up partially downloaded backend on installation failure (#8679) 2026-02-28 13:10:53 +01:00
http fix: Implement responsive line wrapping for model names (#8209) (#8720) 2026-03-02 13:54:58 +01:00
p2p chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
schema feat(ui): add model size estimation (#8684) 2026-02-28 23:03:47 +01:00
services fix(gallery): Use YAML v3 to avoid merging maps with incompatible keys (#8580) 2026-02-16 14:10:19 +01:00
startup feat(api): Add transcribe response format request parameter & adjust STT backends (#8318) 2026-02-01 17:33:17 +01:00
templates chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
trace feat(traces): Add backend traces (#8609) 2026-02-20 23:47:33 +01:00