From 432abc73b90a45ac1c22f0b3a7514fcbdbaf604c Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 2 Feb 2024 22:25:19 +0100 Subject: [PATCH] Upgrade gpt model --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 010d19c..9f525c5 100644 --- a/bot.py +++ b/bot.py @@ -640,13 +640,13 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music final_prompt = username + ":" + prompt logger.info("Rozmiar zapytania przed dodaniem historii %s", chat_gpt_config_request_size) if music: - algorithm = "gpt-3.5-turbo-16k" + algorithm = "gpt-3.5-turbo-0125" table = message_table_muzyka token_amount = 10700 else: table = MESSAGE_TABLE - algorithm = "gpt-4" - token_amount = 7000 + algorithm = "gpt-4-turbo-preview" + token_amount = 28000 prompt_gpt_request_size = num_tokens_from_string({"role": "user", "content": final_prompt}, "gpt-4") temptable = []