Chris Alexiuk
commited on
Commit
·
e325e6c
1
Parent(s):
056a8db
Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,12 @@ Think through your response step by step.
|
|
24 |
@cl.on_chat_start # marks a function that will be executed at the start of a user session
|
25 |
async def start_chat():
|
26 |
settings = {
|
27 |
-
"model"
|
28 |
-
"temperature"
|
29 |
-
"max_tokens"
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
cl.user_session.set("settings", settings)
|
@@ -53,6 +56,8 @@ async def main(message: str):
|
|
53 |
settings=settings
|
54 |
)
|
55 |
|
|
|
|
|
56 |
msg = cl.Message(content="")
|
57 |
|
58 |
# Call OpenAI
|
|
|
24 |
@cl.on_chat_start # marks a function that will be executed at the start of a user session
|
25 |
async def start_chat():
|
26 |
settings = {
|
27 |
+
"model": "gpt-3.5-turbo",
|
28 |
+
"temperature": 0,
|
29 |
+
"max_tokens": 500,
|
30 |
+
"top_p": 1,
|
31 |
+
"frequency_penalty": 0,
|
32 |
+
"presence_penalty": 0,
|
33 |
}
|
34 |
|
35 |
cl.user_session.set("settings", settings)
|
|
|
56 |
settings=settings
|
57 |
)
|
58 |
|
59 |
+
print(prompt.messages)
|
60 |
+
|
61 |
msg = cl.Message(content="")
|
62 |
|
63 |
# Call OpenAI
|