xMaulana commited on
Commit
c000f85
2 Parent(s): 069a4cd d963f79

Merge branch 'main' of https://huggingface.co/spaces/xMaulana/Compfest-Pocketmed

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -52,7 +52,7 @@ def getMessage(msg):
52
  openRespon = openai.ChatCompletion.create(
53
  model="gpt-3.5-turbo",
54
  messages=msg,
55
- temperature=0.6
56
  )
57
  reply = openRespon.choices[0].message.content
58
  return reply
@@ -62,7 +62,7 @@ def cekApikey():
62
  openRespon = openai.ChatCompletion.create(
63
  model="gpt-3.5-turbo",
64
  messages=[{"role" : "user", "content": "i"}],
65
- temperature=0.6
66
  )
67
  return True
68
  except:
 
52
  openRespon = openai.ChatCompletion.create(
53
  model="gpt-3.5-turbo",
54
  messages=msg,
55
+ temperature=0.5
56
  )
57
  reply = openRespon.choices[0].message.content
58
  return reply
 
62
  openRespon = openai.ChatCompletion.create(
63
  model="gpt-3.5-turbo",
64
  messages=[{"role" : "user", "content": "i"}],
65
+ temperature=0.5
66
  )
67
  return True
68
  except: