mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
chore: fix build errors
This commit is contained in:
parent
1a718b7cf5
commit
b749e80325
3 changed files with 12 additions and 14 deletions
|
|
@ -268,17 +268,15 @@ export function ArenaStatusDialog({
|
|||
)}
|
||||
</Box>
|
||||
</Box>
|
||||
{/* In-process mode: show extra detail row with cost + thought tokens */}
|
||||
{live && (live.estimatedCost > 0 || live.thoughtTokens > 0) && (
|
||||
{/* In-process mode: show extra detail row with thought/cached tokens */}
|
||||
{live && (live.thoughtTokens > 0 || live.cachedTokens > 0) && (
|
||||
<Box marginLeft={2}>
|
||||
<Text color={theme.text.secondary}>
|
||||
{live.estimatedCost > 0 &&
|
||||
`Cost: $${live.estimatedCost.toFixed(4)}`}
|
||||
{live.estimatedCost > 0 && live.thoughtTokens > 0 && ' · '}
|
||||
{live.thoughtTokens > 0 &&
|
||||
`Thinking: ${live.thoughtTokens.toLocaleString()} tok`}
|
||||
{live.thoughtTokens > 0 && live.cachedTokens > 0 && ' · '}
|
||||
{live.cachedTokens > 0 &&
|
||||
` · Cached: ${live.cachedTokens.toLocaleString()} tok`}
|
||||
`Cached: ${live.cachedTokens.toLocaleString()} tok`}
|
||||
</Text>
|
||||
</Box>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue