Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ client = OpenAI(api_key=api_key)
|
|
| 8 |
def get_open_ai_output(recipe_titles):
|
| 9 |
food = recipe_titles
|
| 10 |
response=client.chat.completions.create(
|
| 11 |
-
model="gpt-
|
| 12 |
messages=[{"role": "system", "content": f"""Suggest a recipe title based on the {food} item inputted,
|
| 13 |
then acting as a cookbook give the full recipe for the title suggested, include ingredients and instructions"""}],
|
| 14 |
temperature=0.98,
|
|
|
|
| 8 |
def get_open_ai_output(recipe_titles):
|
| 9 |
food = recipe_titles
|
| 10 |
response=client.chat.completions.create(
|
| 11 |
+
model="gpt-3.5-turbo",
|
| 12 |
messages=[{"role": "system", "content": f"""Suggest a recipe title based on the {food} item inputted,
|
| 13 |
then acting as a cookbook give the full recipe for the title suggested, include ingredients and instructions"""}],
|
| 14 |
temperature=0.98,
|