improve Dockerfile and bug fixes

This commit is contained in:
ned
2023-03-18 22:53:04 +01:00
parent 178e640e92
commit 03a317efe4
3 changed files with 10 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ class OpenAIHelper:
Gets a response from the GPT-3 model.
:param chat_id: The chat ID
:param query: The query to send to the model
:return: The answer from the model and the number of tokens used
:return: The answer from the model and the number of tokens used, or an error message
"""
try:
if chat_id not in self.conversations or self.__max_age_reached(chat_id):