eca
eca copied to clipboard
Provide token metrics for ollama provider
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.
Oh interesting, the time I integrated with ollama they didn't have that