mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-20 22:24:57 +01:00
improve Dockerfile and bug fixes
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user