This commit is contained in:
2023-10-20 18:48:14 +02:00
parent d8e68aab8b
commit 9fce8fcd3d
+1 -1
View File
@@ -617,7 +617,7 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
temp_token = num_tokens_from_string(i["content"], "gpt-4")
logger.error("Liczba tokenow %s prompt token %s temp token %s", tokens, prompt_tokens, temp_token)
if tokens < token_amount + prompt_tokens + temp_token:
history.append(i)
#history.append(i)
tokens += temp_token
temp = {"role": "user", "content": final_prompt}