• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 17466639787
58%

Build:
DEFAULT BRANCH: main
Ran 04 Sep 2025 02:10PM UTC
Jobs 1
Files 144
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Sep 2025 02:08PM UTC coverage: 40.616% (+0.001%) from 40.615%
17466639787

push

github

web-flow
fix(llm, anthropic): Enforce cache control limit to prevent API errors (#242)

Anthropic's API has a hard limit of 4 cache control points per request
and returns an error when this limit is exceeded. Previously, the
provider could potentially send more cache controls than allowed,
causing API requests to fail.

The implementation now tracks cache control usage throughout request
building and ensures the limit is never exceeded. Cache controls are
applied conditionally based on availability, prioritizing the most
beneficial cache points: tools, system content, historical messages, and
attachments in that order.

This prevents API errors when communication with Anthropic's API.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

14 of 27 new or added lines in 1 file covered. (51.85%)

2 existing lines in 1 file now uncovered.

5183 of 12761 relevant lines covered (40.62%)

5.59 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
13
50.26
-0.27% crates/jp_llm/src/provider/anthropic.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
50.26
-0.27% crates/jp_llm/src/provider/anthropic.rs
Jobs
ID Job ID Ran Files Coverage
1 17466639787.1 04 Sep 2025 02:10PM UTC 144
40.62
GitHub Action Run
Source Files on build 17466639787
  • Tree
  • List 144
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17466639787
  • 2ad659c7 on github
  • Prev Build on main (#17465396763)
  • Next Build on main (#17976059241)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc