@@ -24,7 +24,6 @@ import { normalizeOptionalString } from "../shared/string-coerce.js";
2424import { countToolResults , extractToolCallNames } from "../utils/transcript-tools.js" ;
2525import {
2626 estimateUsageCost ,
27- resolveConfiguredModelCost ,
2827 resolveModelCostConfig ,
2928 resolveModelCostConfigFingerprint ,
3029} from "../utils/usage-format.js" ;
@@ -1122,23 +1121,16 @@ async function scanTranscriptFile(params: {
11221121 entry . costBreakdown = undefined ;
11231122 } else if (
11241123 ! isModelPricingKnown ( cost ) &&
1125- resolveConfiguredModelCost ( {
1126- provider : entry . provider ,
1127- model : entry . model ,
1128- config : params . config ,
1129- } ) === undefined &&
11301124 ( entry . costTotal === undefined || entry . costTotal === 0 ) &&
11311125 computeUsageTokenTotals ( entry . usage ) . totalTokens > 0
11321126 ) {
1133- // Pricing for this model is unknown: it has no positive per-token rate, the
1134- // operator did not explicitly configure its price (so an all-zero value is a
1135- // catalog default, not an intentional "free" price), and there is no trustworthy
1136- // recorded cost — the transport either recorded nothing or a fabricated $0
1137- // derived from an all-zero catalog entry. Surface this token-burning turn as a
1138- // missing-cost entry instead of recording a confident $0, so budget and spike
1139- // safeguards that read totalCost are not left blind to it. A turn with a real
1140- // positive recorded cost, or a model the operator deliberately priced at 0, is
1141- // preserved by the guards above.
1127+ // Pricing for this model is unknown: it has no positive per-token rate and no
1128+ // trustworthy recorded cost. The transport either recorded nothing or a
1129+ // fabricated $0 derived from an all-zero/default catalog entry. Surface this
1130+ // token-burning turn as a missing-cost entry instead of recording a confident
1131+ // $0, so budget and spike safeguards that read totalCost are not left blind to
1132+ // it. A turn carrying a real positive recorded cost is preserved by the guard
1133+ // above.
11421134 entry . costTotal = undefined ;
11431135 entry . costBreakdown = undefined ;
11441136 } else if ( entry . costTotal === undefined ) {
0 commit comments