fix(models): refresh expired display pricing

This commit is contained in:
Patrick Wozniak
2026-08-18 10:56:11 +02:00
parent 84a802d91d
commit 7af77ddf58
3 changed files with 18 additions and 48 deletions
+11 -5
View File
@@ -148,16 +148,22 @@ describe("MODEL_COSTS pricing overlay", () => {
cacheWrite: 0.038,
})
assertCost("gpt-5.6-terra", {
input: 1,
output: 6,
cacheRead: 0.1,
cacheWrite: 1.25,
input: 2,
output: 12,
cacheRead: 0.2,
cacheWrite: 2.5,
})
assertCost("gpt-5.6-luna", {
input: 0.2,
output: 1.2,
cacheRead: 0.02,
cacheWrite: 0.25,
})
})
it("tracks pricing provenance", () => {
assert.equal(PRICING_SOURCE_URL, "https://commandcode.ai/docs/resources/pricing-limits")
assert.equal(PRICING_LAST_VERIFIED, "2026-08-04")
assert.equal(PRICING_LAST_VERIFIED, "2026-08-18")
})
it("fails once temporary pricing needs review", () => {