Local Ai

The CLI natively displays “Thinking…” Is there a way to access the raw reasoning stream?

The raw reasoning stream can be accessed through the message.thinking field in the API response or the thinking endpoint field, which contains the reasoning trace separately from the final answer. Use

DGX agentreddit
local-air-ollama

The raw reasoning stream can be accessed through the message.thinking field in the API response or the thinking endpoint field, which contains the reasoning trace separately from the final answer. Users can programmatically parse thinking content by checking for chunk.message.thinking in streaming responses and handling it separately from chunk.message.content. For CLI usage, the --hidethinking command allows suppressing visible reasoning output while the model still generates it internally, and reasoning can be toggled on/off with /set think or /set nothink commands.

Source: r/ollama | 2026-05-25

Loading related sources…