Fix Ollama response parsing for multiple JSON objects
- Add explicit stream: False to Ollama requests - Add robust JSON parsing to handle multiple JSON objects in response - Add detailed logging of raw response content for debugging - Parse multiple JSON objects line by line and use the last one - This fixes JSONDecodeError when Ollama returns multiple chunks
Showing
Please
register
or
sign in
to comment