fix: Remove "Ingredients" From OpenAI Prompt For Instructions (#5546)

This commit is contained in:
Michael Genson
2025-06-20 11:28:46 -05:00
committed by GitHub
parent e2eb754cf2
commit 1562437b98

View File

@@ -184,8 +184,9 @@ class OpenAIRecipe(OpenAIBase):
[], [],
description=dedent( description=dedent(
""" """
A list of ingredients used in the recipe. Ingredients should be inserted in the order they appear in the A list of instructions for the recipe. Each instruction should represent one step in the recipe,
recipe. If the recipe has no ingredients, you should return an empty list. 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. 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 Use these as a guide to separate instructions. They also may be separated by numbers or words, such as