Arafath10 commited on
Commit
82863bb
·
verified ·
1 Parent(s): 11bca2f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -155,7 +155,11 @@ async def reply_whatsapp(request: Request):
155
  openai.api_key = os.environ["OPENAI_API_KEY"]
156
 
157
  default = """\n\nDear\nIf you have a specific question or need assistance, please feel free to submit a ticket, and our support team will be happy to help you:<br><br>Submit a Ticket:\nEmail: [email protected]\nHotline: 0114 226 999\nThank You """
158
- messages = [{"role": "user", "content": user_query+". always give small and realistic response"}]
 
 
 
 
159
  gpt_response = openai.chat.completions.create(
160
 
161
  model="gpt-3.5-turbo",
 
155
  openai.api_key = os.environ["OPENAI_API_KEY"]
156
 
157
  default = """\n\nDear\nIf you have a specific question or need assistance, please feel free to submit a ticket, and our support team will be happy to help you:<br><br>Submit a Ticket:\nEmail: [email protected]\nHotline: 0114 226 999\nThank You """
158
+ messages = [
159
+ {"role": "system", "content": "you are parallax technologies chatbot design for answer the user question like a real human"},
160
+ {"role": "user", "content": user_query+". always give small and realistic response"}
161
+ ]
162
+
163
  gpt_response = openai.chat.completions.create(
164
 
165
  model="gpt-3.5-turbo",