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