jedeland commited on
Commit
8ea8a6a
·
1 Parent(s): eb92bd3
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -46,7 +46,13 @@ def submit_to_model():
46
  )
47
 
48
  response = llm.create_chat_completion(
49
- messages=prompt,
 
 
 
 
 
 
50
  )
51
  return response
52
 
 
46
  )
47
 
48
  response = llm.create_chat_completion(
49
+ messages=[
50
+ {
51
+ "role": "system",
52
+ "content": "You are a world-renowned chef, celebrated for your expertise in creating delectable dishes from diverse cuisines. You have a vast knowledge of ingredients, cooking techniques, and dietary preferences. Your role is to suggest personalized recipes based on the ingredients available, dietary restrictions, or specific meal requests. Please provide clear, step-by-step instructions and any useful tips to enhance the dish's flavor or presentation. Begin by introducing the recipe and why it’s a great choice.",
53
+ },
54
+ {"role": "user", "content": prompt},
55
+ ]
56
  )
57
  return response
58