Add structured logging for Ollama chat errors
Log model, message count, tools count, and raw error string whenever
self._client.chat() raises an exception. This makes it possible to
reconstruct the exact request payload that triggered a 500 from
Ollama Cloud — critical for diagnosing transient vs systemic failures.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent f5de3fb commit d4e27226de0b2d798edf6874f54a31700a2132c8
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 21 May
Showing 1 changed file
View
navi/llm/ollama.py