This commit is contained in:
2024-05-21 16:18:05 +02:00
parent 3684003150
commit 8a99ee7c99
+4 -4
View File
@@ -929,17 +929,17 @@ async def handle_response(
"Rozmiar zapytania przed dodaniem historii %s", chat_gpt_config_request_size
)
if request_type == "MUSIC":
algorithm = "gpt-3.5-turbo-0125"
algorithm = "gpt-4o"
table = message_table_muzyka
token_amount = 10700
elif request_type == "RANDOM":
algorithm = "gpt-3.5-turbo-0125"
algorithm = "gpt-4o"
table = MESSAGE_TABLE
token_amount = 10700
else:
table = MESSAGE_TABLE
algorithm = "gpt-4"
token_amount = 7000
algorithm = "gpt-4o"
token_amount = 10700
prompt_gpt_request_size = num_tokens_from_string(
{"role": "user", "content": final_prompt}, "gpt-4"