File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2265,13 +2265,15 @@ export class Cline extends EventEmitter<ClineEvents> {
22652265 details += `\n# Current Local Date/Time\n${ localTimeString } `
22662266
22672267 // Add context tokens information
2268- const { contextTokens, totalCost } = getApiMetrics ( this . clineMessages )
2268+ const { contextTokens, totalCost, totalTokensIn , totalTokensOut } = getApiMetrics ( this . clineMessages )
22692269 const modelInfo = this . api . getModel ( ) . info
22702270 const contextWindow = modelInfo . contextWindow
22712271 const contextPercentage =
22722272 contextTokens && contextWindow ? Math . round ( ( contextTokens / contextWindow ) * 100 ) : undefined
22732273 details += `\n\n# Current Context Size (Tokens)\n${ contextTokens ? `${ contextTokens . toLocaleString ( ) } (${ contextPercentage } %)` : "(Not available)" } `
22742274 details += `\n\n# Current Cost\n${ totalCost !== null ? `$${ totalCost . toFixed ( 2 ) } ` : "(Not available)" } `
2275+ details += `\n\n# Input Tokens Total\n${ totalTokensIn ? totalTokensIn . toLocaleString ( ) : "(Not available)" } `
2276+ details += `\n# Output Tokens Total\n${ totalTokensOut ? totalTokensOut . toLocaleString ( ) : "(Not available)" } `
22752277 // Add current mode and any mode-specific warnings
22762278 const {
22772279 mode,
You can’t perform that action at this time.
0 commit comments