lamhieu commited on
Commit
c1aa2dc
·
1 Parent(s): 96918c1

chore: update something

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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: 'long',
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() + "\nAdditional context: " + client_info
 
 
 
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