From 38355da861bcd75bb682502132a716fefac651e0 Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 25 Aug 2023 13:12:39 +0200 Subject: [PATCH] Test chat gpt4 Hejo fix :) --- bot.py | 6 +++--- settings.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index 3108f95..87e46fd 100644 --- a/bot.py +++ b/bot.py @@ -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 = "" diff --git a/settings.json b/settings.json index 1ec0e3d..3e3e22b 100644 --- a/settings.json +++ b/settings.json @@ -373,7 +373,7 @@ true ], "rev\\b": [ - "Rev lubi wpierdol. Hammer lubi wpierdol. Match made in ~~hell~~ Nocna Zmiana:tm:", + "Rev lubi wpierdol. Nocna Zmiana lubi wpierdol. Match made in ~~hell~~ Nocna Zmiana:tm:", 15.0, 0, false, @@ -411,7 +411,7 @@ ], "luna\\b": [ - "*Przygląda się flaszce Cabernet Sauvgnon z 1789 roku. Wzdycha. Wylewa do zlewu. Wyciąga omszałą butelkę wina z sejfu.* Prezydentowi Waszyngtonowi smakowało. Może nie będzie wybrzydzać.... *Zakłada na butelkę smoczek* Hej Lunku! Pora karmienia", + "*Przygląda się flaszce Cabernet Sauvignon z 1789 roku. Wzdycha. Wylewa do zlewu. Wyciąga omszałą butelkę wina z sejfu.* Prezydentowi Waszyngtonowi smakowało. Może nie będzie wybrzydzać.... *Zakłada na butelkę smoczek* Hej Lunku! Pora karmienia", 15.0, 0, false,