This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-core/backend
Levi Neely f9ba6c8bce Track and display token usage per request
Add Usage{InputTokens, OutputTokens} to backend.Response. Both
OllamaBackend (prompt_eval_count/eval_count) and OpenAIBackend
(prompt_tokens/completion_tokens) populate it. The loop emits a
'usage' OutputMsg after each Chat call; the UI displays it as
[↑N ↓N tokens].

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 00:31:03 +02:00
..
backend.go Track and display token usage per request 2026-04-01 00:31:03 +02:00
new.go Rename OLLIE_API_KEY to OLLIE_OPENAI_KEY 2026-03-31 23:51:01 +02:00
ollama.go Track and display token usage per request 2026-04-01 00:31:03 +02:00
openai.go Track and display token usage per request 2026-04-01 00:31:03 +02:00