Migrating to Mistral Client v2.1.1
Version v2.1.1 introduces 3 breaking changes. This guide details how to update your code.
Released: 3/20/2026
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
mistral.chat.completemistral.fim.completemistral.agents.completeBreaking Changes
●Issue #1
The structure of `response.choices[]` has changed for `mistral.chat.complete()`. Users must update their response parsing logic.
●Issue #2
The structure of `response.choices[]` has changed for `mistral.fim.complete()`. Users must update their response parsing logic.
●Issue #3
The structure of `response.choices[]` has changed for `mistral.agents.complete()`. Users must update their response parsing logic.
Migration Steps
- 1Review and update code that accesses `response.choices[]` in calls to `mistral.chat.complete()`, `mistral.fim.complete()`, and `mistral.agents.complete()` to align with the new structure.
Release Summary
This release updates the Python SDK, introducing breaking changes to the structure of the `response.choices[]` field across chat, FIM, and agent completion endpoints.
Need More Details?
View the full release notes and all changes for Mistral Client v2.1.1.
View Full Changelog