mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
🔧 chore(requirements.txt): update dependencies
The `requirements.txt` file has been updated to include the following changes: - Removed the comment for the Google API dependency. - Added the `anthropic` dependency. - Added a newline at the end of the file. 🐛 fix(ChatProcess.py): fix removing reaction in Chat class The `remove_reaction` method in the `Chat` class was not awaited, causing it to not be executed properly. The fix ensures that the method is awaited before continuing execution. 🐛 fix(prompts.py): fix placeholder name in createPrompt function The placeholder name `[datetime]` in the `createPrompt` function has been changed to `[date-and-time]` to improve clarity and consistency. 🔧 chore(chat.txt): update Zenith prompt The Zenith prompt in the `chat.txt` file has been updated to include additional instructions for the AI character. The update provides more context and guidance for the AI's behavior. ✨ feat(claude.py): add support for Claude model A new file `claude.py` has been added to the `chatUtils/requesters` directory. This file contains the implementation for the `claude` function, which interacts with the Claude model from the Anthropoc API. The function takes a list of messages as input and generates a response using the Claude model. 🔧 chore(request.py): add support for Claude model in request function The `request` function in the `request.py` file has been updated to include support for the Claude model. When the `model` parameter is set to "claude", the function calls the `claude` function from the `claude.py` file to generate a response. 🔧 chore(variousclasses.py): add Claude model to models class The `models` class in the `variousclasses.py` file has been updated to include the Claude model as an option. The model name "claude" has been added to the `chatModels` list.
This commit is contained in:
@@ -206,7 +206,7 @@ class Chat:
|
||||
await self.message.remove_reaction("🤔", self.message.guild.me)
|
||||
except Exception as e:
|
||||
try:
|
||||
self.message.remove_reaction("🤔", self.message.guild.me)
|
||||
await self.message.remove_reaction("🤔", self.message.guild.me)
|
||||
except:
|
||||
pass
|
||||
if isinstance(e, TimeoutError):
|
||||
|
||||
Reference in New Issue
Block a user