Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/xMaulana/Compfest-Pocketmed
Browse files
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.
|
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.
|
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:
|