6 Replies
I put this in input message
And I have this in agent (I use mistral-medium-latest)
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/9685
GitHub
Cant use OCR of mistral · Issue #9685 · mastra-ai/mastra
This issue was created from Discord post 1434935296176423002: I have this error { error: UnsupportedFunctionalityError [AI_UnsupportedFunctionalityError]: 'file part media type application/json...
Hi @Robin ! Unfortunately, that seems to be a limitation of the
@ai-sdk/openai-compatible package... I'm not even sure you can send a json to llms as a message part 🤔Sorry it's
application/pdfI see, thanks for updating the error message. I'm able to reproduce but I think it's just a limitation of
@ai-sdk/openai-compatible looking at their source code https://github.com/vercel/ai/blob/e649a60298c0ade133914a13d0cfe1ecbd2307f9/packages/openai-compatible/src/chat/convert-to-openai-compatible-chat-messages.ts#L45
We added support for mistral recently so you should actually be able to use it this way directly:
Thanks !!!