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

agentjido / req_llm / d8c222d40c55ca8e56f32172a1bbb048906abc18-PR-104
50%
main: 51%

Build:
Build:
LAST BUILD BRANCH: feature/model-catalog
DEFAULT BRANCH: main
Ran 16 Oct 2025 07:51AM UTC
Jobs 2
Files 79
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

16 Oct 2025 07:50AM UTC coverage: 50.069% (+0.04%) from 50.031%
d8c222d40c55ca8e56f32172a1bbb048906abc18-PR-104

Pull #104

github

neilberkman
Add normalize_model_id callback for Bedrock inference profiles

This adds an optional normalize_model_id/1 callback to the Provider
behavior, allowing providers to normalize model identifiers before
looking up metadata.

The AmazonBedrock provider implements this to strip region prefixes
(us., eu., ap., ca., global.) from inference profile IDs, enabling
metadata/pricing lookup for models like:
- us.anthropic.claude-sonnet-4-5-20250929-v1:0 (inference profile)
- anthropic.claude-sonnet-4-5-20250929-v1:0 (standard model ID in registry)

The Model struct retains the original ID for API calls while using
the normalized ID only for metadata lookup.
Pull Request #104: Add normalize_model_id callback for inference profile pricing

9 of 10 new or added lines in 2 files covered. (90.0%)

1 existing line in 1 file now uncovered.

3277 of 6545 relevant lines covered (50.07%)

203.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
57.22
0.16% lib/req_llm/providers/amazon_bedrock.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.41
-3.45% lib/req_llm/providers/openai/param_profiles.ex
Jobs
ID Job ID Ran Files Coverage
1 d8c222d40c55ca8e56f32172a1bbb048906abc18-PR-104.1 16 Oct 2025 07:51AM UTC 79
49.91
GitHub Action Run
2 d8c222d40c55ca8e56f32172a1bbb048906abc18-PR-104.2 16 Oct 2025 07:51AM UTC 79
50.06
GitHub Action Run
Source Files on build d8c222d40c55ca8e56f32172a1bbb048906abc18-PR-104
  • Tree
  • List 79
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #104
  • PR Base - main (#83899338...)
  • 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

© 2025 Coveralls, Inc