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

agentjido / req_llm / a377c25d71d9e982bbd2eb2a57ebb8403c95b7f1-PR-132 / 1
52%
main: 49%

Build:
Build:
LAST BUILD BRANCH: feat/load-dotenv-config
DEFAULT BRANCH: main
Ran 26 Oct 2025 12:44AM UTC
Files 83
Run time 2s
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

26 Oct 2025 12:43AM UTC coverage: 52.202% (+0.2%) from 52.026%
a377c25d71d9e982bbd2eb2a57ebb8403c95b7f1-PR-132.1

Pull #132

github

mikehostetler
Add Anthropic prompt caching script and related functionality

- 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.
Pull Request #132: Add Anthropic prompt caching support

3604 of 6904 relevant lines covered (52.2%)

108.88 hits per line

Source Files on job a377c25d71d9e982bbd2eb2a57ebb8403c95b7f1-PR-132.1
  • Tree
  • List 83
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • a377c25d on github
  • Prev Job for on feature/prompt-caching (#505c1862a661fc7131f99191c0a5dc058705b58d.1)
  • 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