fix: pin upper bound for mistralai dependency#1935
Merged
mkmeral merged 2 commits intostrands-agents:mainfrom Mar 19, 2026
Merged
fix: pin upper bound for mistralai dependency#1935mkmeral merged 2 commits intostrands-agents:mainfrom
mkmeral merged 2 commits intostrands-agents:mainfrom
Conversation
mistralai 2.0.0 moved the Mistral client class from mistralai.Mistral to mistralai.client.Mistral, breaking mypy type checking in CI.
Pin aws_sdk_bedrock_runtime and smithy-aws-core to >=0.4.0,<1.0.0 to prevent unexpected breaking changes from pre-1.0 packages.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
7 tasks
|
Assessment: Comment This PR correctly addresses issue #1924 by pinning Review Notes
The mistral fix looks good and follows the existing dependency versioning pattern used throughout the project. 👍 |
Unshure
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Currently Mistral model provider is broken, because we do not have an upper bound in our deps, and they just released 2.0
This pins the upper version of mistralai
Also pins versions for Bedrock Bidi clients, so we don't run into the same issue. We should have upper bounds for everything
Related Issues
#1924
Documentation PR
Type of Change
Bug fix
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.