commonlemon commited on
Commit
307f66c
·
verified ·
1 Parent(s): e238a65

added temp = 1

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -18,10 +18,7 @@ def respond(message, history): #function for Gradio to call
18
  messages.append({"role": "user", "content": message}) #add the current user’s message to the messages list
19
 
20
  # chat completion API call forwarding the messages & other params to model
21
- response = client.chat_completion(
22
- messages,
23
- max_tokens=100
24
- )
25
 
26
  return response.choices[0].message.content.strip()
27
 
 
18
  messages.append({"role": "user", "content": message}) #add the current user’s message to the messages list
19
 
20
  # chat completion API call forwarding the messages & other params to model
21
+ response = client.chat_completion(messages, max_tokens=100, temperature = 1)
 
 
 
22
 
23
  return response.choices[0].message.content.strip()
24