Upgrade gpt model

This commit is contained in:
2024-02-02 22:25:19 +01:00
committed by migatu
parent cdaf2589b3
commit 432abc73b9
+3 -3
View File
@@ -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 = []