Set the default output cost (#3079)

This commit is contained in:
Tomás Barreiro authored and GitHub committed 2025-04-26 23:03:04 -07:00
1 parent aed152b530
commit d4bd755e60
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
fix cost calculation
+1 -1
View File
@@ -27,7 +27,7 @@ function calculateApiCostInternal(
}
// Determine effective output price
let effectiveOutputPrice = 0
let effectiveOutputPrice = modelInfo.outputPrice || 0
// Check if thinking budget was used and has a specific price
if (usedThinkingBudget && modelInfo.thinkingConfig?.outputPrice !== undefined) {
effectiveOutputPrice = modelInfo.thinkingConfig.outputPrice