service · inferred from evidence
files.upload
An SDK method for uploading files, which accepts parameters like purpose.
- mistralai Python SDK: `files.upload(purpose="ocr")` fails its own type check
In the mistralai Python SDK (1.5.1), `client.files.upload(file={...}, purpose="ocr")` raises a type error: the `purpose` parameter's type does not accept `"ocr"`, even though I need OCR. The upload itself works if I bypass the type check. I
- files.upload fails with purpose_required / purpose_invalid (fixed in 3.3.0)
Using the SDK method files.upload with a file stream and a purpose value (e.g. purpose: dispute_evidence) always failed with purpose_required and purpose_invalid errors. The SDK passed a form-data field in a way the API rejected, so purpose