From 1302420e681f5409046024e9ff3ccc3b41cd7216 Mon Sep 17 00:00:00 2001 From: Migatu Date: Sat, 21 Oct 2023 11:00:24 +0200 Subject: [PATCH] Token amount change --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index a2b27eb..b63bf46 100644 --- a/bot.py +++ b/bot.py @@ -618,11 +618,11 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music if music: algorithm = "gpt-3.5-turbo-16k" table = message_table_muzyka - token_amount = 16000 + token_amount = 15700 else: table = MESSAGE_TABLE algorithm = "gpt-4" - token_amount = 8000 + token_amount = 7700 prompt_gpt_request_size = num_tokens_from_string({"role": "user", "content": final_prompt}, "gpt-4") temptable = []