mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Upgrade gpt model
This commit is contained in:
@@ -640,13 +640,13 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
|
|||||||
final_prompt = username + ":" + prompt
|
final_prompt = username + ":" + prompt
|
||||||
logger.info("Rozmiar zapytania przed dodaniem historii %s", chat_gpt_config_request_size)
|
logger.info("Rozmiar zapytania przed dodaniem historii %s", chat_gpt_config_request_size)
|
||||||
if music:
|
if music:
|
||||||
algorithm = "gpt-3.5-turbo-16k"
|
algorithm = "gpt-3.5-turbo-0125"
|
||||||
table = message_table_muzyka
|
table = message_table_muzyka
|
||||||
token_amount = 10700
|
token_amount = 10700
|
||||||
else:
|
else:
|
||||||
table = MESSAGE_TABLE
|
table = MESSAGE_TABLE
|
||||||
algorithm = "gpt-4"
|
algorithm = "gpt-4-turbo-preview"
|
||||||
token_amount = 7000
|
token_amount = 28000
|
||||||
|
|
||||||
prompt_gpt_request_size = num_tokens_from_string({"role": "user", "content": final_prompt}, "gpt-4")
|
prompt_gpt_request_size = num_tokens_from_string({"role": "user", "content": final_prompt}, "gpt-4")
|
||||||
temptable = []
|
temptable = []
|
||||||
|
|||||||
Reference in New Issue
Block a user