Support for --verbose flag #253

Closed
opened 2026-02-15 16:29:14 -05:00 by yindo · 1 comment
Owner

Originally created by @nshern on GitHub (Apr 3, 2025).

The ollama CLI supports a --verbose mode, which prints some stats at the end of the chat response.
e.g. ollama run 'llama3.2' --verbose
I can't find support for this function with this python SDK.

Am I missing something, or is this not currently supported?

Originally created by @nshern on GitHub (Apr 3, 2025). The ollama CLI supports a `--verbose` mode, which prints some stats at the end of the chat response. e.g. `ollama run 'llama3.2' --verbose` I can't find support for this function with this python SDK. Am I missing something, or is this not currently supported?
yindo closed this issue 2026-02-15 16:29:14 -05:00
Author
Owner

@ParthSareen commented on GitHub (Jul 22, 2025):

Verbose just shows the metrics when on chat request completion. The metrics are always returned - you should be able to access them through the final result. https://github.com/ollama/ollama-python/blob/d7978cb234d1108e199c6cbbea29e4af3264facc/ollama/_types.py#L214-L243

@ParthSareen commented on GitHub (Jul 22, 2025): Verbose just shows the metrics when on chat request completion. The metrics are always returned - you should be able to access them through the final result. https://github.com/ollama/ollama-python/blob/d7978cb234d1108e199c6cbbea29e4af3264facc/ollama/_types.py#L214-L243
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#253