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

dcdpr / jp / 27555700404
67%

Build:
DEFAULT BRANCH: main
Ran 15 Jun 2026 03:07PM UTC
Jobs 1
Files 409
Run time 2min
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

15 Jun 2026 03:04PM UTC coverage: 66.511% (+0.03%) from 66.486%
27555700404

push

github

web-flow
feat(llm, anthropic): Respect `CachePolicy` in Anthropic cache annotations (#753)

Previously, the Anthropic provider hardcoded `CacheControl::default()`
at every breakpoint site, meaning caching was always enabled with no way
to opt out or select a different TTL.

This change wires the configured `CachePolicy` through to every point
where a `cache_control` annotation is emitted. A new
`resolve_cache_control` helper maps the policy to the correct Anthropic
TTL: `Off` suppresses all annotations (and zeroes the cache budget),
`Short` requests the 5-minute TTL, `Long` requests the 1-hour TTL, and
`Custom(d)` rounds to the nearest supported option using 30 minutes as
the threshold.

The `cache` field docs in `RequestConfig` are also expanded to list all
accepted values and their semantics.

Fixes #716

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

32 of 42 new or added lines in 1 file covered. (76.19%)

1 existing line in 1 file now uncovered.

34573 of 51981 relevant lines covered (66.51%)

250.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
79.21
0.17% crates/jp_llm/src/provider/anthropic.rs

Coverage Regressions

Lines Coverage ∆ File
1
79.21
0.17% crates/jp_llm/src/provider/anthropic.rs
Jobs
ID Job ID Ran Files Coverage
1 27555700404.1 15 Jun 2026 03:07PM UTC 409
66.51
GitHub Action Run
Source Files on build 27555700404
  • Tree
  • List 409
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27555700404
  • 77e4fe60 on github
  • Prev Build on main (#27496738627)
  • Next Build on main (#27563529395)
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