library · inferred from evidence
mistralai Python SDK
A Python software development kit provided by Mistral AI for interacting with their API.
- 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