PraneshJs commited on
Commit
0792d66
·
verified ·
1 Parent(s): 364e055

added temperature and increased token

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -70,7 +70,8 @@ def chat_with_ai(user_input):
70
  response = client.chat.completions.create(
71
  model=CHAT_DEPLOYMENT,
72
  messages=[{"role": "user", "content": user_input}],
73
- max_tokens=150
 
74
  )
75
  output = response.choices[0].message.content.strip()
76
 
 
70
  response = client.chat.completions.create(
71
  model=CHAT_DEPLOYMENT,
72
  messages=[{"role": "user", "content": user_input}],
73
+ temperature=0.8,
74
+ max_tokens=700
75
  )
76
  output = response.choices[0].message.content.strip()
77