This commit is contained in:
2023-10-20 19:19:15 +02:00
parent 95474155de
commit c858e62a81
+1 -1
View File
@@ -603,7 +603,7 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
json.dump(file_data, file_memory, indent=4)
history = []
history.append(GPT_SETTINGS[0])
tokens = num_tokens_from_string(GPT_SETTINGS[0]["content"], "gpt-4") + num_tokens_from_string(GPT_SETTINGS[0]["role"], "gpt-4")
tokens = num_tokens_from_string(GPT_SETTINGS[0], "gpt-4")
for (slowo, reakcja) in word_reactions.items():
if not reakcja[3]: