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

agentjido / req_llm / 7177c7cf8704fb09797422dd712c269426699916-PR-192
50%
main: 49%

Build:
Build:
LAST BUILD BRANCH: feat/load-dotenv-config
DEFAULT BRANCH: main
Ran 06 Nov 2025 12:04AM UTC
Jobs 4
Files 89
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

06 Nov 2025 12:03AM UTC coverage: 52.827% (+0.07%) from 52.762%
7177c7cf8704fb09797422dd712c269426699916-PR-192

Pull #192

github

neilberkman
Fix: Extract cached token counts from Google API responses

Fixes #191

Google's API returns cachedContentTokenCount in usageMetadata for both
implicit (automatic) and explicit (CachedContent API) prompt caching.
The provider was not extracting this field, causing cached_tokens to
always be 0 even when caching was active.

Changes:
- Extract cachedContentTokenCount from Google responses
- Convert to OpenAI-compatible prompt_tokens_details.cached_tokens format
- Affects both google and google-vertex providers using Gemini models
Pull Request #192: Fix: Extract cached token counts from Google API responses

5 of 6 new or added lines in 1 file covered. (83.33%)

3 existing lines in 1 file now uncovered.

3999 of 7570 relevant lines covered (52.83%)

353.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
61.71
0.31% lib/req_llm/providers/google.ex

Uncovered Existing Lines

Lines Coverage ∆ File
3
61.71
0.31% lib/req_llm/providers/google.ex
Jobs
ID Job ID Ran Files Coverage
1 7177c7cf8704fb09797422dd712c269426699916-PR-192.1 06 Nov 2025 12:04AM UTC 89
52.69
GitHub Action Run
2 7177c7cf8704fb09797422dd712c269426699916-PR-192.2 06 Nov 2025 12:04AM UTC 89
52.71
GitHub Action Run
3 7177c7cf8704fb09797422dd712c269426699916-PR-192.3 06 Nov 2025 12:04AM UTC 89
52.69
GitHub Action Run
4 7177c7cf8704fb09797422dd712c269426699916-PR-192.4 06 Nov 2025 12:04AM UTC 89
52.79
GitHub Action Run
Source Files on build 7177c7cf8704fb09797422dd712c269426699916-PR-192
  • Tree
  • List 89
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #192
  • PR Base - main (#6FE32B91...)
  • 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