File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3691,13 +3691,13 @@ export class Cline extends EventEmitter<ClineEvents> {
36913691 details += `\n\n# Current Time\n${ formatter . format ( now ) } (${ timeZone } , UTC${ timeZoneOffsetStr } )`
36923692
36933693 // Add context tokens information
3694- const { contextTokens } = getApiMetrics ( this . clineMessages )
3694+ const { contextTokens, totalCost } = getApiMetrics ( this . clineMessages )
36953695 const modelInfo = this . api . getModel ( ) . info
36963696 const contextWindow = modelInfo . contextWindow
36973697 const contextPercentage =
36983698 contextTokens && contextWindow ? Math . round ( ( contextTokens / contextWindow ) * 100 ) : undefined
36993699 details += `\n\n# Current Context Size (Tokens)\n${ contextTokens ? `${ contextTokens . toLocaleString ( ) } (${ contextPercentage } %)` : "(Not available)" } `
3700-
3700+ details += `\n\n# Current Cost\n ${ totalCost ? `$ ${ totalCost . toFixed ( 2 ) } ` : "(Not available)" } `
37013701 // Add current mode and any mode-specific warnings
37023702 const {
37033703 mode,
You can’t perform that action at this time.
0 commit comments