mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Improved chatGPT
This commit is contained in:
@@ -117,9 +117,10 @@ async def chat_process(self, message):
|
|||||||
max_tokens=int(max_tokens),
|
max_tokens=int(max_tokens),
|
||||||
messages=msgs,
|
messages=msgs,
|
||||||
)
|
)
|
||||||
|
should_break = True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
response = None
|
should_break = FalseS
|
||||||
await message.channel.send(f"```diff\n-Error: OpenAI API ERROR.\n\n{e}```", delete_after=10)
|
await message.channel.send(f"```diff\n-Error: OpenAI API ERROR.\n\n{e}```", delete_after=5)
|
||||||
break
|
break
|
||||||
|
|
||||||
#if the ai said "as an ai language model..." we continue the loop" (this is a bug in the chatgpt model)
|
#if the ai said "as an ai language model..." we continue the loop" (this is a bug in the chatgpt model)
|
||||||
|
|||||||
Reference in New Issue
Block a user