Defensive image cleanup in Ollama backend to prevent 'unknown format' errors
- _clean_base64_image() strips data URI prefix and validates non-empty result
- _to_ollama_messages() filters out invalid/empty images before sending to Ollama
- Prevents 500 errors when models receive malformed or unsupported image data

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