library · inferred from evidence
client-python
The Python client library for mistralai, referenced in the GitHub issue link.
- 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