The workaround works, I can extract data from invoices using it, but the problem is that Mistral measures as consumed 65.0000 input tokens, for a pdf file that in Claude are measured 4,000 tokens.
Maybe it's a problem of the coding I've used, which might not correspond to the official Mistral specifications.
Can you please add official support for pdf files in Mistral?.
I couldn't find documentation on token usage from Mistral for PDF files submitted this way.
We can add this method meanwhile but investigate better approaches for a future version.