Skip to content

[BUG] - Mealie failing to convert image to recipe when using ollama #5292

Open
@death2all110

Description

@death2all110

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

Mealie seems to be failing to parse the response from ollama into a recipe. This is happening with multiple models. Seems to not like something with the json response.

Models tested: gemma3:12b and granite3.2-vision

Note: models like LLAVA do not work due to low context window sizes. Creating a modelfile using these and setting a larger num_ctx size produces unwanted results (typically hallucinations), so these are being avoided.

Steps to Reproduce

  1. Start mealie, using a local ollama server as the openai backend, gemma3:12b model (smaller gemma models may also work
  2. Upload image
  3. Uncheck the 'Translate' checkbox
  4. Click 'Create'
  5. Mealie spins for a few moments before coming back with "Something went wrong!" error.

Image

Please provide relevant logs

mealiev1-2025-03-30T15-52-19.log

Mealie Version

Docker Image: hkotel/mealie:latest
Mealie Version: v2.8.0
Build: 2deb9c276cfff6b1aff473776dd327110f2eb55b

Deployment

Unraid

Additional Deployment Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions