Yuvalamitay commited on
Commit
ce341d9
·
verified ·
1 Parent(s): 6d97c78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,8 +19,9 @@ def respond(message, history):
19
  messages.extend(history)
20
 
21
  response = client.chat_completion(
22
- messages, max_tokens=100
23
  )
 
24
 
25
  return response['choices'][0]['message']['content'].strip()
26
 
 
19
  messages.extend(history)
20
 
21
  response = client.chat_completion(
22
+ messages, max_tokens=100, temperature = 1.7, top_p = 0.4
23
  )
24
+ #temperature and top p control randomness
25
 
26
  return response['choices'][0]['message']['content'].strip()
27