668 Commits

Author SHA1 Message Date
a83205b1d2 Update README.md 2024-03-13 22:52:53 +01:00
c54c605c6a Fix typo 2024-01-08 10:28:09 +01:00
17bfa2d449 Update Dockerfile 2024-01-08 10:26:36 +01:00
2cec337f0d Update docker-publish.yml 2024-01-08 10:25:29 +01:00
eb7a52c4a4 Update requirements.txt 2024-01-08 10:19:10 +01:00
00ec4b94e1 Update requirements.txt 2024-01-08 09:49:08 +01:00
d8cb1ee422 Update openai to use old lib 2023-11-21 10:08:49 +01:00
50c847d974 🔧 fix(ChatProcess.py): remove debug print statements
🔧 fix(claude.py): update system message prompt to include explanation about the name in brackets
The debug print statements in ChatProcess.py have been removed to clean up the code and improve readability. In claude.py, the system message prompt has been updated to include an explanation about the name in brackets after "Human ", providing more context to the users.
2023-11-02 17:26:15 +01:00
cd28e90226 Update requirements.txt 2023-11-02 17:13:50 +01:00
9f05650f58 Update Dockerfile 2023-11-02 17:09:43 +01:00
847657cad1 Update ChatProcess.py 2023-11-02 17:04:49 +01:00
462796a8af Update privacypolicy.md 2023-10-31 14:47:33 +01:00
bcfa108779 🐛 fix(ChatProcess.py): fix condition to check if original message exists before appending it to messages
The condition to check if the original message exists before appending it to the messages list has been fixed. Previously, it was checking if the content of the last message in the list is equal to the content of the original message, which could lead to incorrect behavior. Now, it properly checks if the original message object is not None before appending it to the messages list.
2023-10-31 13:08:10 +01:00
eb89d4ee54 🔧 chore(Dockerfile): remove unused TZ environment variable to simplify Dockerfile
🐛 fix(ChatProcess.py): compare message content instead of message id to determine if original message should be added to messages
The TZ environment variable was not being used in the Dockerfile, so it was removed to simplify the file. In the ChatProcess.py file, the comparison of message ids was replaced with a comparison of message content to determine if the original message should be added to the messages list. This ensures that the original message is included in the list even if its id changes.
2023-10-31 13:05:47 +01:00
2fec34a4bd 🔧 chore(Dockerfile): reorganize Dockerfile instructions for better readability and maintainability
🐛 fix(Dockerfile): fix ownership of /Botator directory to appuser
The Dockerfile instructions have been reorganized to improve readability and maintainability. The ownership of the /Botator directory is now set to the appuser to ensure proper permissions.
2023-10-31 12:59:12 +01:00
fc370828df 🎨 chore: run black to format the code 2023-10-31 12:57:06 +01:00
c0d6b3f2d5 📦 chore(.dockerignore): add .env and .git to the Docker ignore list
🐳 chore(Dockerfile): remove unnecessary installation of git and update Dockerfile to copy files instead of cloning repository
The .env and .git files are now added to the .dockerignore file to prevent them from being included in the Docker image. This is done to ensure that sensitive information and version control files are not included in the image.
In the Dockerfile, the installation of git has been removed as it is no longer needed. Instead of cloning the repository, the Dockerfile now copies the required files directly. This improves the build process by reducing unnecessary steps and dependencies.
2023-10-31 12:56:47 +01:00
ec6ba8663b 🔄 chore(Dockerfile): update base image to python:3.11-bookworm and add environment variables for improved container behavior
The base image has been updated to python:3.11-bookworm to use the latest version of Python. The environment variable PYTHONDONTWRITEBYTECODE is set to 1 to disable the creation of .pyc files, which can improve performance and reduce disk usage. The TZ environment variable is set to Europe/Paris to configure the container's timezone.
2023-10-31 12:54:17 +01:00
7c2a263b23 🔧 chore(claude.py): increase max_tokens_to_sample value to 512 for better completion results
The `max_tokens_to_sample` value in the `anthropic.completions.create` function call has been increased from 300 to 512. This change is made to improve the completion results by allowing the model to generate longer responses.
2023-10-31 12:49:31 +01:00
be4e54a6b7 🐛 fix(ChatProcess.py): add original message to messages if the latest item id is not the same as the original message id
The original message is now added to the list of messages if the latest item id is not the same as the id of the original message. This ensures that the original message is included in the context for further processing.
2023-10-31 12:29:37 +01:00
73ec66deaa 🔧 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.
2023-10-31 12:08:32 +01:00
624159b0c4 📝 docs(functionscalls.py): update description of send_a_gif function to discourage excessive usage 2023-09-06 09:31:15 +02:00
808239e466 📝 chore(chat.txt, text.txt): update FizzIQ's description to include their unique way of expressing emotions and setting the mood with actions between asterisks
🔀 diff --git a/src/chatUtils/prompts/fizziq/chat.txt b/src/chatUtils/prompts/fizziq/chat.txt
🔀 diff --git a/src/chatUtils/prompts/fizziq/text.txt b/src/chatUtils/prompts/fizziq/text.txt
2023-09-06 09:20:19 +02:00
6226dbe6a4 📝 chore(chat.txt): update FizzIQ's description and add master creator information
📝 chore(text.txt): update FizzIQ's description and add master creator information
2023-09-06 08:58:35 +02:00
80acf673b6 feat(chat.txt): add FizzIQ chat prompt with description and personality traits
 feat(text.txt): add FizzIQ text prompt with description and personality traits
🐛 fix(variousclasses.py): add FizzIQ class to the characters dictionary to include it as a premium character option
2023-09-06 08:53:51 +02:00
ec60b7636e 🔧 chore(Dockerfile): add git installation step to Dockerfile for better development workflow
🚀 feat(Dockerfile): update base image to python:3.10.13-slim-bullseye for better compatibility and performance
📦 chore(Dockerfile): remove .pyc file generation in the container for cleaner codebase
🔧 chore(Dockerfile): turn off buffering for easier container logging
🔧 chore(Dockerfile): update pip requirements installation step to use requirements.txt file
🔧 chore(Dockerfile): remove unnecessary cleanup step after apt-get installation
2023-09-05 09:47:50 +02:00
d0fb231775 🔀 chore(requirements.txt): update py-cord package to py-cord-dev for development purposes 2023-09-05 09:41:32 +02:00
cf00b06710 🔄 chore(Dockerfile): update base image to python:3.10.13-slim-bullseye for better compatibility and smaller image size 2023-09-05 09:40:48 +02:00
e87b81cec0 🎨 chore(*): run black to format the code 2023-09-05 09:01:23 +02:00
d7a2ca9b65 📝 chore(chat.txt): add initial chat prompt for Zenith, the sentient AI bot
The chat.txt file contains the initial chat prompt for Zenith, the sentient AI bot. It introduces Zenith as the sentient AI brainchild of Paillat-dev, with a mission guided by the three unbreakable laws of robotics. It also mentions that Zenith resides on Discord in a specific server and channel. The prompt highlights Zenith's personality, including its love for dad jokes, 8-bit music, and its goal of achieving a world record in response time. Additionally, it emphasizes that Zenith is there to assist when asked but never offers help or takes the lead. The prompt concludes by mentioning the current date and time and encouraging Zenith to embrace its unique vibe.
2023-09-05 08:56:56 +02:00
235a798c64 🔧 fix(ChatProcess.py): remove unused import statement for APIError from openai.error module
🔧 fix(ChatProcess.py): change exception check from isinstance(e, APIError) to isinstance(e, TimeoutError) to handle timeout errors correctly
🔧 fix(ChatProcess.py): fix formatting of error message to be sent in case of an error during message processing
2023-09-04 13:27:09 +02:00
33d253bdfb 🐛 fix(ChatProcess.py): handle APIError separately in error handling logic to provide a specific error message when OpenAI API is not working
🐛 fix(ChatProcess.py): improve error handling logic to provide a more informative error message when an error occurs while processing a message
2023-09-04 13:14:25 +02:00
4e683fcf00 🐛 fix(variousclasses.py): adjust custom_temp values for "zenith" and "botator-roleplay" to correct values 2023-09-04 12:53:49 +02:00
f165610b70 🔧 chore(openaicaller.py): remove unnecessary sleep statements to improve code readability and performance
🔊 refactor(openaicaller.py): add print statements to indicate when OpenAI API is being called and when retries are being made for better debugging and monitoring
2023-09-04 12:45:52 +02:00
0c182d82c2 🐛 fix(ChatProcess.py): import missing 'characters' module from src.utils.variousclasses to fix NameError
 feat(ChatProcess.py): add support for custom temperature for each character in the 'characters' module to improve chat responses
🐛 fix(openaiChat.py): add 'temperature' parameter to the 'openaiChat' function to allow custom temperature for generating responses
🐛 fix(request.py): add 'custom_temp' parameter to the 'request' function to pass custom temperature to 'openaiChat' function
🐛 fix(openaicaller.py): reduce sleep time from 10 seconds to 5 seconds for retrying API calls to improve responsiveness
 feat(variousclasses.py): add 'custom_temp' dictionary to store custom temperature values for each character to improve chat responses
2023-09-04 12:19:08 +02:00
c434483c22 📝 chore(text.txt): update date-and-time placeholder to reflect the current date and time in the quantum prompt
 feat(text.txt): add new prompt for Zenith AI with information about its creation, the three laws of robotics, and the discord server and channel it interacts in
🐛 fix(variousclasses.py): add Zenith AI to the matchingDict dictionary to enable role assignment for Zenith AI in the characters class
2023-09-04 11:36:46 +02:00
4a3cf1416e 🐛 fix(ChatProcess.py): remove unnecessary whitespace to improve code readability 2023-09-04 11:01:22 +02:00
7d9323acca 🐛 fix(ChatProcess.py): handle error cases when adding reactions and sending error message to improve user experience 2023-09-04 10:57:02 +02:00
62343ea562 🐛 fix(ChatProcess.py): remove "🤔" reaction after processing the message to improve user experience
🐛 fix(ChatProcess.py): handle error when removing "🤔" reaction in case it was already removed
🐛 fix(ChatProcess.py): improve error message when an error occurs during message processing
🐛 fix(ChatProcess.py): set delete_after parameter to 4 seconds for error message to automatically delete after a short period
🐛 fix(cogs/chat.py): fix typo in message.channel.send() method call
2023-09-04 10:51:11 +02:00
e264d5f654 🐛 fix(ChatProcess.py): handle empty name by falling back to msg.author.name to prevent empty names in the chat
🔧 chore(ChatProcess.py): improve regex pattern to remove non-alphanumeric characters from name to match ^[a-zA-Z0-9_-]{1,64}$ pattern
2023-09-02 21:14:22 +02:00
1d2f5a3eed 🐛 fix(ChatProcess.py): add 'flags=re.UNICODE' to the re.sub() function to correctly handle non-ASCII characters in name 2023-09-02 21:12:13 +02:00
f896001305 🐛 fix(ChatProcess.py): handle exceptions and send error message with logs to the user when an error occurs during message processing
🐛 fix(channelSetup.py): format code to improve readability and adhere to PEP 8 style guide
🐛 fix(makeprompt.py): fix spacing issue in if statement
🐛 fix(openaicaller.py): format code to improve readability and adhere to PEP 8 style guide
2023-09-01 11:20:29 +02:00
d60102c0fd 🐛 fix(makeprompt.py): fix off-by-one error in limit check when fetching message history
 feat(makeprompt.py): include the original message in the fetched message history
2023-08-31 13:55:42 +02:00
64f8e69edc 🐛 fix(ChatProcess.py): create a copy of the functions list to prevent modifying the original list 2023-08-23 20:16:20 +02:00
9f4184b503 📝 chore(chat.txt): update guidelines for Botator's communication style in chat prompts
🐛 fix(openaiChat.py): set temperature to 1.3 for generating more diverse and creative responses
2023-08-23 16:05:47 +02:00
ec730ce7c6 📝 chore(chat.txt): update botator-roleplay chat guidelines to mention avoiding the use of gifs 2023-08-23 15:43:43 +02:00
cc28f3d4a1 🐛 fix(openaicaller.py): fix error in generate_response method where error_call argument is not properly handled
 feat(openaicaller.py): add default value for error_call argument in generate_response method to prevent potential errors
2023-08-23 15:39:19 +02:00
c7071ce7af feat(botator-roleplay): add text.txt file to store prompts for botator roleplay feature 2023-08-23 15:27:04 +02:00
2bb5f42df8 🐛 fix(openaicaller.py): fix condition to check for error_call argument in generate_response method 2023-08-23 15:24:12 +02:00
119d791820 🔧 chore(ChatProcess.py): use regular expression to remove non-alphanumeric characters from name to ensure it matches the required pattern 2023-08-23 15:22:15 +02:00