Conceptual checklist for an empty tool-call response: HTTP 200 with empty content, then inspect the stop reason, then check the token usage. Raising the token cap is not a guaranteed fix.

Ollama Returns an Empty Response? Check the Token Limit

An agent sends a request with a tools array and a modest output cap. The server answers HTTP 200, the body parses, and the assistant message is empty: content is "", tool_calls is absent, and no error field explains it. The loop logs “model returned no content”, retries the identical request, and the next turn is empty in the same way. The operator starts suspecting the model, the quantisation or the chat template, because nothing in the client raised an exception. ...

November 8, 2026 · 11 min · baeseokjae