reedmayhew commited on
Commit
425a8a5
·
verified ·
1 Parent(s): fe29472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def chat_with_openai(message: str, history: list, temperature: float, max_new_to
91
  if not history:
92
  # Add a system prompt and initial assistant confirmation.
93
  conversation.append({"role": "system", "content": SYSTEM_PROMPT})
94
- conversation.append({"role": "assistant", "content": "Understood!"})
95
  for user_msg, assistant_msg in history:
96
  conversation.append({"role": "user", "content": user_msg})
97
  conversation.append({"role": "assistant", "content": assistant_msg})
 
91
  if not history:
92
  # Add a system prompt and initial assistant confirmation.
93
  conversation.append({"role": "system", "content": SYSTEM_PROMPT})
94
+ conversation.append({"role": "assistant", "content": "Understood! I will act as the user's healthcare provider, not hesitate with providing detailed responses, or refer them to another healthcare provider unless they ask for one or need a prescription, test, or resource unavailable via telehealth. I will provide detailed responses with markdown in the form of bullet point lists."})
95
  for user_msg, assistant_msg in history:
96
  conversation.append({"role": "user", "content": user_msg})
97
  conversation.append({"role": "assistant", "content": assistant_msg})