Set the default output cost (#3079)
This commit is contained in:
1 parent
aed152b530
commit
d4bd755e60
2 files changed
+6
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"claude-dev": patch
|
||||
---
|
||||
|
||||
fix cost calculation
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user