From 66953992f13b7f67fe09f4cc433f8bd1fd2ac313 Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 20 Oct 2023 12:24:22 +0200 Subject: [PATCH] Fix --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index b3da3e4..483179a 100644 --- a/bot.py +++ b/bot.py @@ -594,7 +594,7 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music history = [] tokens = 0 history.append(GPT_SETTINGS[0]) - tokens += num_tokens_from_string(GPT_SETTINGS[0], "gpt-4") + tokens += num_tokens_from_string(GPT_SETTINGS[0]["content"], "gpt-4") for (slowo, reakcja) in word_reactions.items(): if not reakcja[3]: temp = {"role": "system", "content": "Kiedy słyszysz " + slowo + " to reagujesz lub dzieje się to " + reakcja[0]}