jamesthong
commited on
Commit
•
8bfb8b9
1
Parent(s):
1133401
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ def chat_mem(message,chat_history):
|
|
18 |
|
19 |
chat_completion = client.chat_completion(
|
20 |
messages=chat_history_role,
|
|
|
21 |
# stream=True
|
22 |
)
|
23 |
chat_history_role.append({"role": "assistant", "content": chat_completion.choices[0].message.content})
|
|
|
18 |
|
19 |
chat_completion = client.chat_completion(
|
20 |
messages=chat_history_role,
|
21 |
+
max_tokens=500,
|
22 |
# stream=True
|
23 |
)
|
24 |
chat_history_role.append({"role": "assistant", "content": chat_completion.choices[0].message.content})
|