Skip to content

0.5.2: cache tip quotes the session's own model (Flash is 50x, not 30x) - #27

Merged
lroolle merged 1 commit into
mainfrom
examples-flash
Sep 18, 2026
Merged

lroolle merged 1 commit into
mainfrom
examples-flash

Conversation

@lroolle

@lroolle lroolle commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

The cache tip told every Flash session that a cached prefix bills at 1/30 of the miss rate. 30x is Pro's discount; V4.1 Flash, now the default, discounts a hit 50x. cacheDiscountOf(models) takes the smallest discount among the models that actually billed. The rate-table footnote keeps the card-wide floor. README examples now price deepseek-flash. 186 tests pass; making the function return the card-wide figure turns them red.

🤖 Generated with Claude Code

The cache tip used the card-wide minimum (Pro's 30x). V4.1 Flash, now the
default, discounts a hit 50x. cacheDiscountOf(models) reads the models that
billed. 0.5.2.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@lroolle
lroolle merged commit fa14173 into main Sep 18, 2026
2 checks passed
@lroolle
lroolle deleted the examples-flash branch September 18, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant