FallbackOllamaBackend: do not blacklist single server, empty file fallback
- When only one Ollama server is configured, LLMConnectionError no longer
  adds it to the dead-server blacklist. This fixes the bug where a
  transient failure permanently blocked all requests until server restart.
- LLMModelNotFoundError on a single server is also not blacklisted.
- _discover_backends now falls back to settings.ollama_host when the
  ollama_backends_file is empty, missing, or returns no valid servers.
- Added unit tests covering single-server no-blacklist, multi-server
  blacklist, model-not-found no-blacklist, and empty-file fallback.

400 passed, 1 skipped
1 parent ba183ef commit b8acc878854409585defc5b30236b3235ffff1b1
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 21 May
Showing 3 changed files
View
navi/core/registry.py
View
navi/llm/fallback.py
View
tests/unit/llm/test_ollama.py