Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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
|
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(
|