Spaces:
Paused
Paused
chore: update something
Browse files
app.py
CHANGED
|
@@ -66,7 +66,7 @@ function schedule_updates() {
|
|
| 66 |
const client_info_element = document.querySelector("#client_info textarea");
|
| 67 |
client_info_element.value = "The current time is " + new Date().toLocaleString('en-US', {
|
| 68 |
dateStyle: 'full',
|
| 69 |
-
timeStyle: '
|
| 70 |
})
|
| 71 |
client_info_element.dispatchEvent(new Event('input'));
|
| 72 |
}
|
|
@@ -464,7 +464,10 @@ def generate_chat(
|
|
| 464 |
if system_prompt:
|
| 465 |
if system_prompt.strip() == DEFAULT_SYSTEM_PROMPT.strip():
|
| 466 |
system_prompt = (
|
| 467 |
-
system_prompt.strip()
|
|
|
|
|
|
|
|
|
|
| 468 |
)
|
| 469 |
conversation.append({"role": "system", "content": system_prompt})
|
| 470 |
|
|
|
|
| 66 |
const client_info_element = document.querySelector("#client_info textarea");
|
| 67 |
client_info_element.value = "The current time is " + new Date().toLocaleString('en-US', {
|
| 68 |
dateStyle: 'full',
|
| 69 |
+
timeStyle: 'short',
|
| 70 |
})
|
| 71 |
client_info_element.dispatchEvent(new Event('input'));
|
| 72 |
}
|
|
|
|
| 464 |
if system_prompt:
|
| 465 |
if system_prompt.strip() == DEFAULT_SYSTEM_PROMPT.strip():
|
| 466 |
system_prompt = (
|
| 467 |
+
system_prompt.strip()
|
| 468 |
+
+ "\n\nAdditionally, feel free to use contextual information, including the time of the conversation, to tailor your suggestions and responses appropriately.\n"
|
| 469 |
+
+ client_info
|
| 470 |
+
+ "\n"
|
| 471 |
)
|
| 472 |
conversation.append({"role": "system", "content": system_prompt})
|
| 473 |
|