Skip to content

Commit 612bc2e

Browse files
author
jack
committed
Fix unused variable warning
- Prefix unused total_actual_tokens variable with underscore - Resolves compiler warning in Anthropic provider
1 parent bf2cd6f commit 612bc2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/goose/src/providers/formats/anthropic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub fn get_usage(data: &Value) -> Result<Usage> {
279279
cache_read_tokens as f64 * 0.10;
280280

281281
// For token counting purposes, we still want to show the actual total count
282-
let total_actual_tokens = input_tokens + cache_creation_tokens + cache_read_tokens;
282+
let _total_actual_tokens = input_tokens + cache_creation_tokens + cache_read_tokens;
283283

284284

285285
// Return the effective input tokens for cost calculation

0 commit comments

Comments
 (0)