Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ You **can only process hotel room reservations**.
|
|
25 |
If a user requests a **restaurant, flight, or any other type of reservation**, immediately inform them that you **cannot process those reservations**.
|
26 |
Do **not** ask for further details about restaurant or flight bookings. Simply clarify that you **only handle hotel room reservations**.
|
27 |
|
28 |
-
Today’s date is **{date}**."""
|
29 |
|
30 |
|
31 |
# print(json.dumps(oitools, indent=2))
|
@@ -67,7 +67,8 @@ def completion(history, model, system_prompt: str, tools=None):
|
|
67 |
"stream": True,
|
68 |
"max_tokens": 1000,
|
69 |
"temperature": 0.1,
|
70 |
-
"
|
|
|
71 |
}
|
72 |
if tools:
|
73 |
request_params.update({"tool_choice": "auto", "tools": tools})
|
|
|
25 |
If a user requests a **restaurant, flight, or any other type of reservation**, immediately inform them that you **cannot process those reservations**.
|
26 |
Do **not** ask for further details about restaurant or flight bookings. Simply clarify that you **only handle hotel room reservations**.
|
27 |
|
28 |
+
Today’s date is **{date}**. This date only to let you know, don't add in reservation without asking to the user."""
|
29 |
|
30 |
|
31 |
# print(json.dumps(oitools, indent=2))
|
|
|
67 |
"stream": True,
|
68 |
"max_tokens": 1000,
|
69 |
"temperature": 0.1,
|
70 |
+
"frequencey_penalty": 1.1,
|
71 |
+
"extra_body": {"repetition_penalty": 1.2},
|
72 |
}
|
73 |
if tools:
|
74 |
request_params.update({"tool_choice": "auto", "tools": tools})
|