mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
add typecheck script and fix TypeScript errors (#48)
This commit is contained in:
1 parent
e853660ad3
commit
ed4bc17987
14 files changed
+371
-137
No files matched your search
@@ -145,7 +145,8 @@ export const MessagePart = memo(function MessagePart({ part, role, allParts, par
|
||||
)
|
||||
case 'step-finish': {
|
||||
const isFree = part.cost === 0
|
||||
const costText = isMobile && isFree ? null : <span>${part.cost.toFixed(4)} • {part.tokens.input + part.tokens.output} tokens</span>
|
||||
const totalTokens = part.tokens.input + part.tokens.output + (part.tokens.cache?.read || 0)
|
||||
const costText = isMobile && isFree ? null : <span>${part.cost.toFixed(4)} • {totalTokens} tokens</span>
|
||||
return (
|
||||
<div className="text-xs text-muted-foreground my-1 flex items-center gap-2">
|
||||
{costText}
|
||||
|
||||
Reference in new issue
Block a user