mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 23:40:48 +00:00
sync
This commit is contained in:
parent
0791b077d7
commit
0b565b18c4
1 changed files with 3 additions and 1 deletions
|
|
@ -151,7 +151,9 @@ func (m statusCmp) View() string {
|
|||
if message.Metadata.Assistant != nil {
|
||||
cost += message.Metadata.Assistant.Cost
|
||||
usage := message.Metadata.Assistant.Tokens
|
||||
tokens = (usage.Input + usage.Output + usage.Reasoning)
|
||||
if usage.Output > 0 {
|
||||
tokens = (usage.Input + usage.Output + usage.Reasoning)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue