This commit is contained in:
2023-10-19 14:17:25 +02:00
parent e57a9507c1
commit 3891f843ad
+2 -2
View File
@@ -585,12 +585,12 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
temp = {"role : system", "content : Kiedy słyszysz " + slowo + " to reagujesz lub dzieje się to " + reakcja[0]}
if music:
history.extend(message_table_muzyka)
history.extend(message_table_muzyka[-20:0])
response = await openai.ChatCompletion.acreate(
model="gpt-3.5-turbo-16k", messages=history
)
else:
history.extend(MESSAGE_TABLE)
history.extend(MESSAGE_TABLE[-20:0])
response = await openai.ChatCompletion.acreate(
model="gpt-3.5-turbo-16k", messages=history
)