Skip to content

Mistral AI python sample mistral-ocr-with-vlm.ipynb: 500 error while performing OCR or unexisting model is required #289

@pm-itia

Description

@pm-itia

In the file mistral-ocr-with-vlm.ipynb the instruction requires to use the mistralai-ocr-2503 model for OCR, however such a model doesn't exist in the AI Foundry model catalog. When I look for "ocr", only the new mistral-document-ai model appears:

Image

I tried to use this model and provided its URL endpoint, but executing the following the function _call_ocr_model() results in 500 error.

I tested different options of the URL, like https://MY_RESOURCE.services.ai.azure.com/providers/mistral/azure/ocr and https://MY_RESOURCE.services.ai.azure.com/providers/mistral/azure (the code appends /v1/ocr), but without success.

The mistral-ocr-2503 model is mentioned in the payload variable in the function _call_ocr_model() - I tried to replace it with mistral-document-ai-2505 with using the full endpoint URL and with removed appending /v1/ocr, but still 500 is returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions