|
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> |
|---|
|
|
| navi/llm/ollama.py |
|---|