From 6d3e74f7586fbca3172e08c95293e40c2f342176 Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 20 Oct 2023 23:22:13 +0200 Subject: [PATCH] Last (hopefully) fix --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 417ffba..864c70a 100644 --- a/bot.py +++ b/bot.py @@ -616,11 +616,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 = 16384 + token_amount = 16000 else: table = MESSAGE_TABLE algorithm = "gpt-4" - token_amount = 8192 + token_amount = 8000 prompt_tokens = num_tokens_from_string({"role": "user", "content": final_prompt}, "gpt-4") temptable = []