Skip to content

test(llm): pin the Claude Haiku 5.5 over-100k prompt tier - #1245

Open
napetrov wants to merge 3 commits into
intel:mainfrom
napetrov:fix/haiku-55-tier-100k
Open

napetrov wants to merge 3 commits into
intel:mainfrom
napetrov:fix/haiku-55-tier-100k

Conversation

@napetrov

Copy link
Copy Markdown
Contributor

Test-only. No cost-path change was needed: litellm already prices a Claude Haiku 5.5 request over 100,000 prompt tokens at the higher rates for the whole request ($0.50 in / $2.50 out per MTok on the first-party route), with cache reads and writes counted toward the prompt length, and the us. route at 1.1x. This PR pins that with 4 tests so a litellm upgrade or a route change cannot drop the tier unnoticed.

Evidence: dokimi's cost path gives $0.0575 for a 110k-prompt first-party call and $0.06325 on the us. route, the same on litellm 1.108.4 (floor) and 1.109.1 (locked). test_llm_haiku55_tier.py 4 passed (with the banner and CLI suites, 122 passed); ruff clean; pre-push make ci-local 0 failed.
Local self-review (L1, one pass): no blocking; two questions declined with reasons (cache-read assumption checked by probe; changelog rule covers package code only).

🤖 Generated with Claude Code

Over 100,000 prompt tokens a Haiku 5.5 request pays $0.50 in / $2.50 out per MTok for
the whole request, with cache reads and writes counted toward the prompt length (Anthropic
pricing page). litellm already prices this on the first-party and us./apac. routes, on
1.108.4 and 1.109.1 alike; no cost-path change was needed. These tests pin the tier so a
litellm upgrade or a route change cannot drop it silently.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov
napetrov requested a review from a team as a code owner November 26, 2026 05:24
@exai-bot

exai-bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s).

CI at `725baf9`: 1 failing, 18 passing, 3 skipped
Check Status
Tests (py3.14) failing at step Run tests
Review details
  • Commit reviewed: 725baf9 against merge base 50ea631
  • Coverage: 1 files in 1 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 60k tokens (22k from cache), 9s
  • Tool calls: 5 (2 code_search, 1 ci_status, 1 file_read, 1 local_check_results)
  • dokimi/tests/test_llm_haiku55_tier.py: 1 file

@codecov-commenter

codecov-commenter commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.12%. Comparing base (50ea631) to head (725baf9).
⚠️ Report is 1 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1245      +/-   ##
==========================================
- Coverage   96.13%   96.12%   -0.02%     
==========================================
  Files         498      498              
  Lines       66004    66028      +24     
  Branches    11461    11461              
==========================================
+ Hits        63456    63469      +13     
- Misses       1576     1581       +5     
- Partials      972      978       +6     

see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vchamarthi vchamarthi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@napetrov, could you fix the small thing I've marked fix before merge (in the line comments)? I'll approve once that's done.

What I checked on 9b1f07c: the 6 changed tests pass, and pass on main too; the full test suite passes with main merged in (29,789 tests), apart from failures main has too; it merges cleanly onto main.

Comment thread dokimi/tests/test_llm_haiku55_tier.py Resolved
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g868P1pt
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov

Copy link
Copy Markdown
Contributor Author

Re: review by vchamarthi

could you fix the small thing I've marked fix before merge
The inline reply links the new cache-write test. All seven pricing tests pass.

This branch has not been deployed

No deployments
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.

4 participants