Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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: support@storemate.lk\nHotline: 0114 226 999\nThank You """
|
| 158 |
-
messages = [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: support@storemate.lk\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",
|