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

agentjido / req_llm / 77f91e89e808c5e1c40968532140d33612d4444d-PR-147

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

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

0.0
/lib/mix/tasks/model_compat.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