mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
footer clarifies it's showing context usage, not input token usage
This commit is contained in:
parent
1684042fb6
commit
194415e785
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ func formatTokensAndCost(tokens float32, contextWindow float32, cost float32) st
|
|||
formattedCost := fmt.Sprintf("$%.2f", cost)
|
||||
percentage := (float64(tokens) / float64(contextWindow)) * 100
|
||||
|
||||
return fmt.Sprintf("Tokens: %s (%d%%), Cost: %s", formattedTokens, int(percentage), formattedCost)
|
||||
return fmt.Sprintf("Context: %s (%d%%), Cost: %s", formattedTokens, int(percentage), formattedCost)
|
||||
}
|
||||
|
||||
func (m statusComponent) View() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue