lamhieu commited on
Commit
4b29f2f
·
1 Parent(s): 1b1a431

chore: update something

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -67,7 +67,7 @@ function schedule_updates() {
67
  const client_info_element = document.querySelector("#client_info textarea");
68
  client_info_element.value = "The current time is " + new Date().toLocaleString('en-US', {
69
  dateStyle: 'full',
70
- timeStyle: 'long',
71
  })
72
  client_info_element.dispatchEvent(new Event('input'));
73
  }
@@ -473,7 +473,10 @@ def generate_chat(
473
  if system_prompt:
474
  if system_prompt.strip() == DEFAULT_SYSTEM_PROMPT.strip():
475
  system_prompt = (
476
- system_prompt.strip() + "\nAdditional context: " + client_info
 
 
 
477
  )
478
  conversation.append({"role": "system", "content": system_prompt})
479
 
 
67
  const client_info_element = document.querySelector("#client_info textarea");
68
  client_info_element.value = "The current time is " + new Date().toLocaleString('en-US', {
69
  dateStyle: 'full',
70
+ timeStyle: 'short',
71
  })
72
  client_info_element.dispatchEvent(new Event('input'));
73
  }
 
473
  if system_prompt:
474
  if system_prompt.strip() == DEFAULT_SYSTEM_PROMPT.strip():
475
  system_prompt = (
476
+ system_prompt.strip()
477
+ + "\n\nAdditionally, feel free to use contextual information, including the time of the conversation, to tailor your suggestions and responses appropriately.\n"
478
+ + client_info
479
+ + "\n"
480
  )
481
  conversation.append({"role": "system", "content": system_prompt})
482