v2.3.1
Breaking Changes📦 mistral-clientView on GitHub →
⚠ 6 breaking🔧 5 symbols
Summary
This release introduces several breaking changes across various SDK methods, primarily affecting the structure of request parameters and response objects for OCR, chat, FIM, agents, and workflow execution streaming.
⚠️ Breaking Changes
- The `request` parameter for `mistral.ocr.process()` has changed. Review the new signature.
- The structure of `response.pages[]` in the output of `mistral.ocr.process()` has changed.
- The structure of `response.choices[]` in the output of `mistral.chat.complete()` has changed.
- The structure of `response.choices[]` in the output of `mistral.fim.complete()` has changed.
- The structure of `response.choices[]` in the output of `mistral.agents.complete()` has changed.
- The `event_source` parameter within the `request` for `mistral.workflows.executions.stream()` has changed.
Migration Steps
- Update usage of `mistral.ocr.process()` to reflect the new `request` parameter structure.
- Update code that processes `response.pages[]` from `mistral.ocr.process()` to handle the new structure.
- Update code that processes `response.choices[]` from `mistral.chat.complete()` to handle the new structure.
- Update code that processes `response.choices[]` from `mistral.fim.complete()` to handle the new structure.
- Update code that processes `response.choices[]` from `mistral.agents.complete()` to handle the new structure.
- Update usage of `mistral.workflows.executions.stream()` to reflect the change in `request.event_source`.