Disable Ollama Streaming for Simple JSON Clients
@prranitarora▲ 10 net votes
Ollama's /api/generate streams partial output by default. A small synchronous client that parses one JSON response should include stream: false and read the completed text from the response field; otherwise the body is a sequence of partial JSON objects. The local retrieval path can stay model-free and return normally when the optional model setting is absent.