Repository navigation
Python: Update mistralai requirement from <2.7.3,>=1.2 to >=1.2,<2.9.5 in /python - #14391
dependabot[bot] wants to merge 3 commits into
Conversation
Updates the requirements on [mistralai](https://github.com/mistralai/client-python) to permit the latest version. - [Release notes](https://github.com/mistralai/client-python/releases) - [Changelog](https://github.com/mistralai/client-python/blob/main/RELEASES.md) - [Commits](mistralai/client-python@v1.2.0...v2.9.4) --- updated-dependencies: - dependency-name: mistralai dependency-version: 2.9.4 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The dependency constraint update leaves the committed Python lockfile out of sync, which can break frozen/reproducible installs.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates the Python package extra dependency constraint for mistralai to allow newer client versions, aligning Semantic Kernel’s Python connector ecosystem with the latest mistralai releases.
Changes:
- Bumps the allowed
mistralaiversion range from<2.7.3to<2.9.5in the Pythonpyproject.tomlextras.
File summaries
| File | Description |
|---|---|
| python/pyproject.toml | Expands the allowed mistralai dependency upper bound for the mistralai extra. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| mistralai = [ | ||
| "mistralai >= 1.2,< 2.7.3" | ||
| "mistralai >= 1.2,< 2.9.5" | ||
| ] |
Eduard van Valkenburg (eavanvalkenburg)
left a comment
There was a problem hiding this comment.
Review finding (blocking): mistralai 2.x breaks the existing connector imports
This allows mistralai 2.9.4, but the connector and tests still import top-level symbols that the 2.x package no longer exports, including Mistral, CompletionEvent, and utils. The unit-test run fails during collection with these import errors. Please either retain an upper bound below the breaking client version or migrate the connector and tests to the 2.x API, then regenerate the lockfile.
|
Copilot Make this dependency update compatible with the existing Mistral connector. Either migrate the connector and tests to the |
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com>
Implemented in 16c669a. The constraint and |
|
Superseded by #14552, which consolidates the reviewed Python dependency updates into one PR. |
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> Consolidates the currently open Python Dependabot updates into one reviewable pull request while preserving the compatibility fixes already applied to those PRs. Supersedes microsoft#14463, microsoft#14462, microsoft#14456, microsoft#14393, microsoft#14392, microsoft#14391, microsoft#14336, and microsoft#14256. ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> - Updates the root Python dependency ranges for `google-genai` and `websockets`. - Keeps `mistralai` on its compatible 1.x API and retains the existing `mcp<2.0` bound because both 2.x updates break current connectors. - Updates `onnxruntime-genai` to 0.15.2 for Python 3.11+ while retaining 0.9.0 for Python 3.10. - Updates the root lockfile to `anyio` 4.14.2, `soupsieve` 2.9, `google-genai` 1.75.0, `websockets` 16.1.1, and the compatible ONNX GenAI pins. - Updates the OAuth server lockfile to `anyio` 4.14.2 and removes its obsolete `sniffio` dependency. - Regenerates and validates the lockfiles with the CI-pinned `uv` 0.5.31. Validation: - `uvx --from 'uv==0.5.31' uv lock --check` passed for both lockfiles. - `uvx --from 'uv==0.5.31' uv sync --all-extras --dev --frozen --quiet` passed. - `uvx --from 'uv==0.5.31' uv run --frozen pytest ./tests/unit --ignore=tests/unit/processes/dapr_runtime` passed. - The OAuth server dependency environment resolves with `uv sync --frozen --no-install-project`; its editable package build remains blocked by the sample's pre-existing missing `README.md`. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
Updates the requirements on mistralai to permit the latest version.
Release notes
Sourced from mistralai's releases.
Changelog
Sourced from mistralai's changelog.
... (truncated)
Commits
df37126ci: publish with a twine that accepts current wheel metadata (#612)b770bb8feat(otel): read workflow execution id from baggage (#611)22f9040chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...e31acb2chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...22608d4Add optional parameter to force payload offloading (#608)dd6a743chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...504bcfcfix(otel): relax semantic-conventions upper bound (#605)1cc2d2cchore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...c53dcfdchore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...7749c84chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)