Closed matbee-eth closed 9 months ago
Seems to parse the JSON even without validating the response type. ndjson
responses need to be newline delimited.
Submitted a small quick and dirty PR to fix my issue. I haven't looked too deeply but I'm going to assume streamed ndjson/JSONL parsing in general will need to be fixed. https://github.com/continuedev/continue/pull/752
Before submitting your bug report
Relevant environment info
Description
I'm running a cloudflare tunnel for my server-based ollama service. It seems like Continue errors when receiving chunked encoded JSONL responses and is expecting a full JSON object in a response, during a streamed response. It should be waiting for a
\n
in a JSONL response before it attempts to JSON.parse.To reproduce
No response
Log output
No response