From fcd9fdeaa48ce35977d3268e47ee01a9c95e1547 Mon Sep 17 00:00:00 2001 From: Migatu Date: Tue, 29 Aug 2023 13:53:59 +0200 Subject: [PATCH] =?UTF-8?q?Test=20czy=20upgrade=20do=20d=C5=82ugich=20mode?= =?UTF-8?q?li=20si=C4=99=20uda=C5=82.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 49ca713..c96322b 100644 --- a/bot.py +++ b/bot.py @@ -529,6 +529,7 @@ async def check(): # trunk-ignore(pylint/R0913) +# trunk-ignore(pylint/R0915) async def handle_response(prompt, vykidailo, bartender, history, username, music): """ Handle responses by appending them to a history, use OpenAI to @@ -575,14 +576,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[-15:]) + history.extend(message_table_muzyka[-25:]) response = await openai.ChatCompletion.acreate( model="gpt-4-32k", messages=history ) else: history.append(MESSAGE_TABLE[0]) - history.extend(MESSAGE_TABLE[-15:]) + history.extend(MESSAGE_TABLE[-25:]) response = await openai.ChatCompletion.acreate( model="gpt-3.5-turbo-16k", messages=history )