Zekun Wu
commited on
Commit
·
c253dbd
1
Parent(s):
2beb254
update
Browse files
app.py
CHANGED
@@ -274,7 +274,7 @@ def main_app():
|
|
274 |
stream = client.chat.completions.create(
|
275 |
model="personality_gpt4o",
|
276 |
temperature=st.session_state['temperature'],
|
277 |
-
max_tokens=
|
278 |
frequency_penalty=0.2, # To avoid repetition
|
279 |
presence_penalty=0.2, # To introduce new topics
|
280 |
messages= prompt,
|
|
|
274 |
stream = client.chat.completions.create(
|
275 |
model="personality_gpt4o",
|
276 |
temperature=st.session_state['temperature'],
|
277 |
+
max_tokens=3000, # Adjust based on desired response length
|
278 |
frequency_penalty=0.2, # To avoid repetition
|
279 |
presence_penalty=0.2, # To introduce new topics
|
280 |
messages= prompt,
|