From 1562437b98d8f59f5d3bb53064cb8447fa836885 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Fri, 20 Jun 2025 11:28:46 -0500 Subject: [PATCH] fix: Remove "Ingredients" From OpenAI Prompt For Instructions (#5546) --- mealie/schema/openai/recipe.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mealie/schema/openai/recipe.py b/mealie/schema/openai/recipe.py index 146345b97..a0b8ae115 100644 --- a/mealie/schema/openai/recipe.py +++ b/mealie/schema/openai/recipe.py @@ -184,8 +184,9 @@ class OpenAIRecipe(OpenAIBase): [], description=dedent( """ - A list of ingredients used in the recipe. Ingredients should be inserted in the order they appear in the - recipe. If the recipe has no ingredients, you should return an empty list. + A list of instructions for the recipe. Each instruction should represent one step in the recipe, + and should be inserted in the order they appear in the recipe. If the recipe has no instructions, + you should return an empty list. Often times, but not always, instructions are separated by line breaks and/or separated by paragraphs. Use these as a guide to separate instructions. They also may be separated by numbers or words, such as