From c224b2ccc8d64331065b3a166956812fbb99799e Mon Sep 17 00:00:00 2001 From: Migatu Date: Tue, 29 Aug 2023 10:34:53 +0200 Subject: [PATCH] Hejo --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 7774abe..2fc9a7f 100644 --- a/bot.py +++ b/bot.py @@ -568,10 +568,10 @@ 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(