Migrating to Mistral Client v1.4.0
Version v1.4.0 introduces 1 breaking change. This guide details how to update your code.
Released: 1/21/2025
1
Breaking Changes
1
Migration Steps
4
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
FileSchemaListFilesOutRetrieveFileOutUploadFileOutBreaking Changes
●Issue #1
The field name `bytes` was renamed to `size_bytes` in the following classes and their TypedDict equivalents: `FileSchema`, `ListFilesOut`, `RetrieveFileOut`, and `UploadFileOut`. Update your code to use `size_bytes` instead of `bytes`.
Migration Steps
- 1If you were using the `bytes` field in `FileSchema`, `ListFilesOut`, `RetrieveFileOut`, or `UploadFileOut`, change all references to use `size_bytes` instead.
Release Summary
This release introduces a breaking change by renaming the `bytes` field to `size_bytes` across several file-related output classes and adds a new `prediction` argument.
Need More Details?
View the full release notes and all changes for Mistral Client v1.4.0.
View Full Changelog