Introduction to Nonebot Plugin Naturel GPT
Overview
The Nonebot Plugin Naturel GPT is an innovative AI chatbot plugin for Nonebot, designed to make AI conversations more human-like. With its ability to support multiple custom personalities and seamless personality switching, this plugin enables users to unleash their creativity and create unique AI interactions.
Key Features
-
Automatic API Key Switching: The plugin allows the use of multiple OpenAI API keys, automatically switching when one becomes invalid, ensuring continuous operation.
-
Custom Personality Presets: Users can create personalized personalities, shaping the AI to fit their unique preferences and interaction styles.
-
Contextual Memory in Chats: Equipped with short-term memory in group chat settings, the plugin keeps conversations consistent and avoids abrupt context changes.
-
Chat Record Summary: It automatically summarizes chat memory, offering a certain level of long-term memory capability.
-
User Impression Memory: Each personality has distinct impressions of users, allowing the AI to remember who each user is.
-
Data Persistence: With data persistence, the AI won't forget users after a reboot, using pickle files for data storage.
-
Personality Switching: Users can switch between different personalities at any time, offering a variety of interactions.
-
Editing Personalities: Instructions are available for editing personalities, allowing for adjustments to the AI's behavior and characteristics.
-
Custom Trigger Words: Users can define trigger words to make the AI more proactive or goal-oriented.
-
Custom Block Words: Block words are available to ensure the AI remains safe and appropriate in its responses.
-
Random Chat Participation: The AI may occasionally participate in group chats, adding an element of spontaneity to interactions.
-
Asynchronous Support: The plugin is designed to handle messages efficiently, boosting its processing capabilities.
-
Extensible Features: Tired of the usual Q&A format? The AI can utilize extensions to perform tasks like sending images, voice messages, emails, and more.
-
Multi-part Reply Capability: The AI can deliver more complex and nuanced conversations, going beyond simple question-and-answer interactions.
-
Welcome New Members Actively: Serving as an automatic welcome host for new group members.
-
Text-to-Speech (TTS): Allows users to hear the AI's responses by converting text into speech.
-
Personality Activation Mechanism: Automatically switches personalities when a different personality is called, with an option to enable or disable this feature.
-
Scheduled Tasks: Users can set natural language reminders, letting the AI remind them of tasks like meal times.
-
Online Search/Read Links: Augmenting the database with real-time search capabilities to keep the AI informed with updated information.
-
Content-to-Image Conversion: Converts AI responses into images to reduce risk and enhance visual presentation.
-
Minecraft Server Integration: The AI can serve in-game, crafting complex NBT commands using GPT capabilities.
-
Message Throttling: To handle burst messages effectively, replying only to the last message received within a short period.
-
Stable Diffusion Support: Integrates with arranged illustration APIs for extended drawing functionalities.
-
PresetHub Sharing Center: A platform for users to share personality presets across the plugin's community.
Installation
To install the plugin, execute the following command in your bot directory:
nb plugin install nonebot-plugin-naturel-gpt
Documentation and Development
The project offers comprehensive documentation and a straightforward guide for developers. Interested developers can clone the repository, install dependencies, and run the bot with ease.
For full documentation, users can visit the NG Documentation Site.
Development Guide
- Clone the Repository
git clone https://github.com/KroMiose/nonebot_plugin_naturel_gpt.git
- Install Dependencies
cd nonebot_plugin_naturel_gpt
pip install poetry # Python environment required: Recommended Python 3.10
poetry install
- Run the Bot
nb run
Evolution and Updates
The plugin has continuously evolved, with major updates like the introduction of the Minecraft server integration and PresetHub, a preset sharing center. Regular updates include performance improvements and new features to enhance user experience.
Community and Support
Users are encouraged to contribute to the plugin's evolution. The Nonebot Plugin Naturel GPT community offers a space for technical exchange, problem-solving, and discussion. For more engagement, users can join the plugin discussion group.
By offering a blend of customizable interactions and continuous feature enhancements, the Nonebot Plugin Naturel GPT stands as a dynamic tool for creating more natural and engaging AI chat experiences.