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

agentjido / req_llm / f6963a1d775a56ee52bf65890f7a66301d42e765
49%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2025 08:21PM UTC
Jobs 4
Files 83
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

27 Oct 2025 08:21PM UTC coverage: 52.329% (+0.2%) from 52.169%
f6963a1d775a56ee52bf65890f7a66301d42e765

push

github

web-flow
Add Anthropic prompt caching script and related functionality (#132)

- Introduced a new script `anthropic_prompt_caching.exs` to demonstrate the use of prompt caching with Anthropic models, including options for model selection, cache TTL, and logging levels.
- Enhanced the `ReqLLM.Providers.Anthropic` module to support prompt caching, including the addition of `anthropic_prompt_cache` and `anthropic_prompt_cache_ttl` options.
- Updated the request preparation process to inject cache control metadata into tools and system messages.
- Implemented usage tracking for cached tokens in the response handling, allowing for cost savings analysis.
- Added comprehensive unit tests for the new caching functionality, covering various scenarios including header injection and cache control handling.

These changes improve the efficiency and cost-effectiveness of using Anthropic models by leveraging prompt caching capabilities.

34 of 49 new or added lines in 4 files covered. (69.39%)

4 existing lines in 3 files now uncovered.

3617 of 6912 relevant lines covered (52.33%)

435.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
61.54
0.73% lib/req_llm/providers/anthropic/response.ex
2
75.52
-0.63% lib/req_llm/stream_server.ex
3
0.0
0.0% lib/mix/tasks/model_sync.ex
9
58.62
5.09% lib/req_llm/providers/anthropic.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% lib/mix/tasks/model_sync.ex
1
58.62
5.09% lib/req_llm/providers/anthropic.ex
2
55.26
-2.63% lib/req_llm/streaming/finch_client.ex
Jobs
ID Job ID Ran Files Coverage
1 f6963a1d775a56ee52bf65890f7a66301d42e765.1 27 Oct 2025 08:21PM UTC 83
52.2
GitHub Action Run
2 f6963a1d775a56ee52bf65890f7a66301d42e765.2 27 Oct 2025 08:21PM UTC 83
52.23
GitHub Action Run
3 f6963a1d775a56ee52bf65890f7a66301d42e765.3 27 Oct 2025 08:21PM UTC 83
52.23
GitHub Action Run
4 f6963a1d775a56ee52bf65890f7a66301d42e765.4 27 Oct 2025 08:21PM UTC 83
52.29
GitHub Action Run
Source Files on build f6963a1d775a56ee52bf65890f7a66301d42e765
  • Tree
  • List 83
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f6963a1d on github
  • Prev Build on main (#8CC8A6FF...)
  • Next Build on main (#8DD5F47A...)
  • Delete
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