mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Support for --verbose flag #253
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nshern on GitHub (Apr 3, 2025).
The ollama CLI supports a
--verbosemode, which prints some stats at the end of the chat response.e.g.
ollama run 'llama3.2' --verboseI can't find support for this function with this python SDK.
Am I missing something, or is this not currently supported?
@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