Test chat gpt4

Hejo

fix

:)
This commit is contained in:
2023-08-25 13:12:39 +02:00
committed by migatu
parent 03c73fc55e
commit 38355da861
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -568,14 +568,14 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
# * extend bo 20 ostatnich
if music:
history.append(message_table_muzyka[0])
history.extend(message_table_muzyka[-20:])
history.extend(message_table_muzyka[-15:])
else:
history.append(MESSAGE_TABLE[0])
history.extend(MESSAGE_TABLE[-20:])
history.extend(MESSAGE_TABLE[-15:])
logger.info("Historia wysłana:")
logger.debug(history)
response = await openai.ChatCompletion.acreate(
model="gpt-3.5-turbo", messages=history
model="gpt-4", messages=history
)
await asyncio.sleep(10)
result = ""