Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.6k stars 698 forks source link

Switching back to GPT3 OFFICIAL does not work #473

Closed mduckwitz closed 3 months ago

mduckwitz commented 8 months ago

When I switch from GTP3 OFFICIAL to GPT4 OFFICIAL it works but when switching back I get an error:

(Running it in Google Cloud Console)

2023-10-15 14:46:44 ERROR discord.app_commands.tree Ignoring exception in command 'chat-model' Traceback (most recent call last): File "/home/max_duckwitz/.local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 828, in _do_call return await self._callback(interaction, **params) # type: ignore File "/home/max_duckwitz/chatGPT-discord-bot/src/bot.py", line 95, in chat_model await interaction.response.defer(ephemeral=False) File "/home/max_duckwitz/.local/lib/python3.9/site-packages/discord/interactions.py", line 661, in defer await adapter.create_interaction_response( File "/home/maxduckwitz/.local/lib/python3.9/site-packages/discord/webhook/async.py", line 219, in request raise NotFound(response, data) discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/max_duckwitz/.local/lib/python3.9/site-packages/discord/app_commands/tree.py", line 1248, in _call await command._invoke_with_namespace(interaction, namespace) File "/home/max_duckwitz/.local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 853, in _invoke_with_namespace return await self._do_call(interaction, transformed_values) File "/home/max_duckwitz/.local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 846, in _do_call raise CommandInvokeError(self, e) from e discord.app_commands.errors.CommandInvokeError: Command 'chat-model' raised an exception: NotFound: 404 Not Found (error code: 10062): Unknown interaction