Merge branch 'main' into feature/support-functions

# Conflicts:
#	translations.json
This commit is contained in:
ned
2023-07-03 22:31:15 +02:00
2 changed files with 16 additions and 16 deletions

View File

@@ -221,7 +221,7 @@ class OpenAIHelper:
try:
summary = await self.__summarise(self.conversations[chat_id][:-1])
logging.debug(f'Summary: {summary}')
self.reset_chat_history(chat_id)
self.reset_chat_history(chat_id, self.conversations[chat_id][0]['content'])
self.__add_to_history(chat_id, role="assistant", content=summary)
self.__add_to_history(chat_id, role="user", content=query)
except Exception as e: