Skip to content

Python: Update mistralai requirement from <2.7.3,>=1.2 to >=1.2,<2.9.5 in /python - #14391

Closed
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/pip/python/mistralai-gte-1.2-and-lt-2.9.5
Closed

dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/pip/python/mistralai-gte-1.2-and-lt-2.9.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 7, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on mistralai to permit the latest version.

Release notes

Sourced from mistralai's releases.

python - v2.9.4 - 2026-08-21 18:06:04

Generated by Speakeasy CLI

2026-08-21 09:35:18

Changes

Based on:

Generated

  • [python v2.9.4] .

Releases

Publishing Completed

Changelog

Sourced from mistralai's changelog.

2024-08-07 14:25:13

Changes

Based on:

Generated

  • [python v1.0.0] .

Releases

2024-08-08 18:12:16

Changes

Based on:

Generated

  • [python v1.0.1] .

Releases

2024-08-20 08:36:28

Changes

Based on:

Generated

  • [python v1.0.2] .

Releases

2024-08-29 09:09:05

Changes

Based on:

Generated

  • [python v1.0.3] .

Releases

2024-09-13 16:21:24

Changes

Based on:

Generated

  • [python v1.1.0] .

Releases

... (truncated)

Commits
  • df37126 ci: publish with a twine that accepts current wheel metadata (#612)
  • b770bb8 feat(otel): read workflow execution id from baggage (#611)
  • 22f9040 chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...
  • e31acb2 chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...
  • 22608d4 Add optional parameter to force payload offloading (#608)
  • dd6a743 chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...
  • 504bcfc fix(otel): relax semantic-conventions upper bound (#605)
  • 1cc2d2c chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...
  • c53dcfd chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...
  • 7749c84 chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-s...
  • Additional commits viewable in compare view

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file. Used by Dependabot. python Pull requests for the Python Semantic Kernel labels Sep 7, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner September 7, 2026 22:12
Copilot AI lite review requested due to automatic review settings September 7, 2026 22:12
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file. Used by Dependabot. python Pull requests for the Python Semantic Kernel labels Sep 7, 2026
@github-actions github-actions Bot changed the title Update mistralai requirement from <2.7.3,>=1.2 to >=1.2,<2.9.5 in /python Python: Update mistralai requirement from <2.7.3,>=1.2 to >=1.2,<2.9.5 in /python Sep 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 mistralai version range from <2.7.3 to <2.9.5 in the Python pyproject.toml extras.
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.

Comment thread python/pyproject.toml
Comment on lines 105 to 107
mistralai = [
"mistralai >= 1.2,< 2.7.3"
"mistralai >= 1.2,< 2.9.5"
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@eavanvalkenburg

Copy link
Copy Markdown
Member

Copilot Make this dependency update compatible with the existing Mistral connector. Either migrate the connector and tests to the mistralai 2.x API, including the removed top-level imports, or restore an upper bound that excludes the breaking versions. Regenerate the lockfile and run the Mistral and Python test suites.

Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com>

Copilot AI commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Copilot Make this dependency update compatible with the existing Mistral connector. Either migrate the connector and tests to the mistralai 2.x API, including the removed top-level imports, or rest...

Implemented in 16c669a. The constraint and uv.lock now restrict mistralai to the compatible 1.x API. The Mistral unit tests pass (51 passed).

@eavanvalkenburg

Copy link
Copy Markdown
Member

Superseded by #14552, which consolidates the reviewed Python dependency updates into one PR.

@dependabot @github

dependabot Bot commented on behalf of github Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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 @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/pip/python/mistralai-gte-1.2-and-lt-2.9.5 branch October 6, 2026 09:38
Boz (bozza-man) pushed a commit to Bruteforce-Group/semantic-kernel that referenced this pull request Oct 6, 2026
### 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 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file. Used by Dependabot. python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants