Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -263,9 +263,9 @@ async def process_query(query: str,
|
|
| 263 |
# Initial message to check for waybill number in the query
|
| 264 |
messages = [
|
| 265 |
{"role": "system", "content": "You are a helpful assistant for Curfox delivery system."},
|
| 266 |
-
{"role": "user", "content": f"""always check user query mentioned the
|
| 267 |
if order id provided then output is only : "done"
|
| 268 |
-
if user not given the
|
| 269 |
user query : {query}""" }
|
| 270 |
]
|
| 271 |
result = ask_openai(messages)
|
|
|
|
| 263 |
# Initial message to check for waybill number in the query
|
| 264 |
messages = [
|
| 265 |
{"role": "system", "content": "You are a helpful assistant for Curfox delivery system."},
|
| 266 |
+
{"role": "user", "content": f"""always check user query mentioned the waybill number/id (example : CA000001)
|
| 267 |
if order id provided then output is only : "done"
|
| 268 |
+
if user not given the waybill number then ask the number from user (include or response to greetings)
|
| 269 |
user query : {query}""" }
|
| 270 |
]
|
| 271 |
result = ask_openai(messages)
|