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

agentjido / req_llm / 77f91e89e808c5e1c40968532140d33612d4444d-PR-147
53%
main: 54%

Build:
Build:
LAST BUILD BRANCH: fix/bedrock-inference-profiles
DEFAULT BRANCH: main
Ran 28 Oct 2025 09:42PM UTC
Jobs 2
Files 84
Run time 2min
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

28 Oct 2025 09:41PM UTC coverage: 52.571% (+0.08%) from 52.492%
77f91e89e808c5e1c40968532140d33612d4444d-PR-147

Pull #147

github

neilberkman
Add Mistral AI model support and improve Bedrock formatter architecture

Introduces full support for 5 Mistral AI models on AWS Bedrock (7B, 8x7B,
Small, Large, and Pixtral Large) with comprehensive test coverage.

Generic improvements:
- Adds callback system for model-specific capabilities in Bedrock formatters:
  * requires_converse_api?/0 - formatters declare Converse API requirement
  * supports_converse_tool_choice?/0 - formatters declare toolChoice support
  * preserve_inference_profile?/1 - formatters control ID normalization
- Fixes formatter selection logic when using Converse API to properly delegate
  to family-specific formatters only when they wrap Converse (e.g., Mistral)
- Resolves incorrect formatter selection for Anthropic models with use_converse: true

Mistral-specific:
- Implements ReqLLM.Providers.AmazonBedrock.Mistral formatter wrapping Converse API
- Handles system message incompatibility by prepending to first user message
- Preserves inference profile prefix for Pixtral (region-specific invocation required)
- Sets tool_call: false for models lacking toolChoice support in Converse API
- Adds comprehensive streaming fixtures for all 5 models

All models pass comprehensive test suite at 100% coverage.
Pull Request #147: Fix Bedrock streaming, tool round-trip, usage metadata, and add Mistral AI support for 1.0

52 of 66 new or added lines in 5 files covered. (78.79%)

259 existing lines in 8 files now uncovered.

3722 of 7080 relevant lines covered (52.57%)

220.57 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
84.21
-1.5% lib/req_llm/providers/amazon_bedrock/meta.ex
3
80.82
0.82% lib/req_llm/providers/amazon_bedrock/converse.ex
3
83.33
-2.15% lib/req_llm/providers/amazon_bedrock/openai.ex
7
69.0
6.22% lib/req_llm/providers/amazon_bedrock.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.33
-16.67% lib/req_llm/provider.ex
1
50.0
0.0% lib/req_llm/provider/generated/valid_providers.ex
2
63.29
-0.63% lib/req_llm/provider/defaults.ex
3
32.35
-8.82% test/support/fixtures.ex
7
85.45
0.0% test/support/model_matrix.ex
33
47.14
-8.41% lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex
55
69.0
6.22% lib/req_llm/providers/amazon_bedrock.ex
157
0.0
0.0% lib/mix/tasks/model_compat.ex
Jobs
ID Job ID Ran Files Coverage
1 77f91e89e808c5e1c40968532140d33612d4444d-PR-147.1 28 Oct 2025 09:42PM UTC 84
52.51
GitHub Action Run
2 77f91e89e808c5e1c40968532140d33612d4444d-PR-147.2 28 Oct 2025 09:42PM UTC 84
52.54
GitHub Action Run
Source Files on build 77f91e89e808c5e1c40968532140d33612d4444d-PR-147
  • Tree
  • List 84
  • Changed 16
  • Source Changed 0
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #147
  • PR Base - main (#689E02AC...)
  • 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