eca icon indicating copy to clipboard operation
eca copied to clipboard

Provide token metrics for ollama provider

Open cpp977 opened this issue 4 months ago • 1 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

When using the ollama provider, eca currently reports no token usage metrics, although Ollama reports them. The ollama JSON response contains:

{
  "prompt_eval_count": 10,
  "eval_count": 224
}

Those should be parsed and the passed upwards so that they can be provided to the user.

cpp977 avatar Aug 04 '26 10:08 cpp977

Oh interesting, the time I integrated with ollama they didn't have that

ericdallo avatar Aug 04 '26 18:08 ericdallo