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

agentjido / req_llm / 0c64c2bb1444f139899f9883c5dd497a85712dc4-PR-104

16 Oct 2025 07:45AM UTC coverage: 50.084% (+0.05%) from 50.031%
0c64c2bb1444f139899f9883c5dd497a85712dc4-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%)

3278 of 6545 relevant lines covered (50.08%)

204.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.22
/lib/req_llm/providers/amazon_bedrock.ex


Source Not Available

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