Gonalb commited on
Commit
7978768
·
1 Parent(s): 84eb0c6

modifications 4o and system input

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -11,7 +11,8 @@ from dotenv import load_dotenv
11
  load_dotenv()
12
 
13
  # ChatOpenAI Templates
14
- system_template = """You are a helpful assistant who always speaks in a pleasant tone!
 
15
  """
16
 
17
  user_template = """{input}
@@ -22,10 +23,10 @@ Think through your response step by step.
22
  @cl.on_chat_start # marks a function that will be executed at the start of a user session
23
  async def start_chat():
24
  settings = {
25
- "model": "gpt-3.5-turbo",
26
- "temperature": 0,
27
  "max_tokens": 500,
28
- "top_p": 1,
29
  "frequency_penalty": 0,
30
  "presence_penalty": 0,
31
  }
 
11
  load_dotenv()
12
 
13
  # ChatOpenAI Templates
14
+ system_template = """You are a helpful assistant who always speaks in a pleasant tone. Provide clear, concise answers, but expand with examples or details when necessary.
15
+ Use bullet points or numbered lists for clarity where appropriate.
16
  """
17
 
18
  user_template = """{input}
 
23
  @cl.on_chat_start # marks a function that will be executed at the start of a user session
24
  async def start_chat():
25
  settings = {
26
+ "model": "gpt-4o",
27
+ "temperature": 0.7,
28
  "max_tokens": 500,
29
+ "top_p": 0.5,
30
  "frequency_penalty": 0,
31
  "presence_penalty": 0,
32
  }