Repository navigation
Conversation
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>
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s). CI at `725baf9`: 1 failing, 18 passing, 3 skipped
Review details
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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 🚀 New features to boost your workflow:
|
vchamarthi
left a comment
There was a problem hiding this comment.
@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.
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g868P1pt Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
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.py4 passed (with the banner and CLI suites, 122 passed); ruff clean; pre-pushmake ci-local0 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