diff --git a/.changeset/twenty-comics-enjoy.md b/.changeset/twenty-comics-enjoy.md new file mode 100644 index 00000000..fce250e4 --- /dev/null +++ b/.changeset/twenty-comics-enjoy.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +fix cost calculation diff --git a/src/utils/cost.ts b/src/utils/cost.ts index facf788e..b14957d4 100644 --- a/src/utils/cost.ts +++ b/src/utils/cost.ts @@ -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