fix: include cached tokens in tui
This commit is contained in:
parent
c8eb1b24c3
commit
c7bb7ce4de
3 changed files with 26 additions and 2 deletions
|
|
@ -102,7 +102,11 @@ func (m statusComponent) View() string {
|
|||
cost += message.Metadata.Assistant.Cost
|
||||
usage := message.Metadata.Assistant.Tokens
|
||||
if usage.Output > 0 {
|
||||
tokens = (usage.Input + usage.Output + usage.Reasoning)
|
||||
tokens = (usage.Input +
|
||||
usage.Cache.Write +
|
||||
usage.Cache.Read +
|
||||
usage.Output +
|
||||
usage.Reasoning)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue