Arafath10 commited on
Commit
53a7825
·
verified ·
1 Parent(s): 075d4e3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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"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(
 
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 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(