This commit is contained in:
2025-10-30 16:59:03 +01:00
parent a63368adb5
commit aa0be5d905
+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"