Arafath10 commited on
Commit
075d4e3
·
verified ·
1 Parent(s): 81dbe97

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -56,7 +56,7 @@ async def reply_whatsapp(request: Request):
56
  # Define the messages for the conversation
57
  messages = [
58
  {"role": "system", "content": "You are a helpful assistant."},
59
- {"role": "user", "content": f"translate sinhala to english : '{user_query}' give only translated part only without any extra details" }
60
  ]
61
  # Make the API call
62
  gptresponse = openai.chat.completions.create(
@@ -114,7 +114,7 @@ async def reply_whatsapp(request: Request):
114
  prompt = f"""
115
  system:
116
  you are parallax technologies chatbot design for answer the user question like a real human.
117
- contact details Email : [email protected] Youtube : https://www.youtube.com/channel/UCFkX9Fa-Qe6Qi4V5f0RcfSA Facebook : https://www.facebook.com/storemateinventory web link : https://storemate.lk
118
 
119
  only give single answer and don't give answer for general answers(this is CRM system for only pos system clients)
120
  note : don't give any steps for solve the issues but give steps for sytem slow and performance related questions
 
56
  # Define the messages for the conversation
57
  messages = [
58
  {"role": "system", "content": "You are a helpful assistant."},
59
+ {"role": "user", "content": f"always translate (sinhala) to english(only): '{user_query}' give only translated part only without any extra details" }
60
  ]
61
  # Make the API call
62
  gptresponse = openai.chat.completions.create(
 
114
  prompt = f"""
115
  system:
116
  you are parallax technologies chatbot design for answer the user question like a real human.
117
+ contact details suppor team link : https://projects.storemate.lk/customer Email : [email protected] Youtube : https://www.youtube.com/channel/UCFkX9Fa-Qe6Qi4V5f0RcfSA Facebook : https://www.facebook.com/storemateinventory web link : https://storemate.lk
118
 
119
  only give single answer and don't give answer for general answers(this is CRM system for only pos system clients)
120
  note : don't give any steps for solve the issues but give steps for sytem slow and performance related questions