About ChatAI Plugin Info
Comprehensive information about ChatAI Plugin, repositories, and core mechanisms.
Repository Information
ChatAI Plugin has two repositories for different user groups:
Public Version (Recommended)
| Item | Info |
|---|---|
| Repository | XxxXTeam/chatai-plugin |
| Status | 🟢 Public |
| Updates | Stable releases |
| Target | Regular users, production |
bash
# Install public version
git clone https://github.com/XxxXTeam/chatai-plugin.git ./plugins/chatgpt-pluginNightly Build (Beta)
| Item | Info |
|---|---|
| Repository | XxxXTeam/chatgpt-plugin |
| Status | 🔒 Private |
| Updates | Daily builds with latest features |
| Target | Developers, testers |
Note
Nightly builds may contain untested features. Not recommended for production.
Apply for Beta Access
- Visit https://plugin.openel.top/auth
- Login with GitHub account
- Submit application to join beta queue
- Wait for approval to access private repository
Plugin Initialization
Initialization Flow
First Startup
On first startup, plugin automatically:
- Create Config - Generate default config in
config/ - Initialize Database - Create SQLite database and tables
- Create Data Directories -
data/presets/,data/tools/, etc.
Common Initialization Issues
better-sqlite3 Build Failed
bash
# Run in Yunzai root directory
pnpm rebuild better-sqlite3If still fails, install build tools:
bash
npm install -g windows-build-toolsbash
sudo apt install build-essential python3bash
xcode-select --installPort Occupied
Modify port in config/config.yaml:
yaml
web:
port: 3001 # Change to another portChannel Configuration
Channels are core configurations for connecting AI models.
Channel Parameters
| Parameter | Required | Description |
|---|---|---|
name | ✅ | Channel name (unique identifier) |
type | ✅ | Type: openai, claude, gemini |
baseUrl | ✅ | API base URL |
apiKey | ✅ | API key |
model | ✅ | Default model name |
enabled | ❌ | Enable/disable (default: true) |
weight | ❌ | Load balancing weight (default: 1) |
maxRetries | ❌ | Max retries (default: 3) |
timeout | ❌ | Request timeout ms (default: 60000) |
Channel Types
yaml
channels:
- name: openai
type: openai
baseUrl: https://api.openai.com/v1
apiKey: sk-xxx
model: gpt-4o
- name: deepseek
type: openai # DeepSeek is OpenAI compatible
baseUrl: https://api.deepseek.com/v1
apiKey: sk-xxx
model: deepseek-chatyaml
channels:
- name: claude
type: claude
apiKey: sk-ant-xxx
model: claude-3-5-sonnet-20241022yaml
channels:
- name: gemini
type: gemini
apiKey: xxx
model: gemini-2.0-flashMulti-Channel Load Balancing
yaml
channels:
- name: openai-1
type: openai
baseUrl: https://api.openai.com/v1
apiKey: sk-xxx-1
model: gpt-4o
weight: 2 # Higher weight = higher probability
- name: openai-2
type: openai
baseUrl: https://api.openai.com/v1
apiKey: sk-xxx-2
model: gpt-4o
weight: 1Error Retry Mechanism
Retry Strategy
Configure Retry Parameters
yaml
channels:
- name: openai
type: openai
baseUrl: https://api.openai.com/v1
apiKey: sk-xxx
model: gpt-4o
maxRetries: 3 # Max retry count
retryDelay: 1000 # Initial retry delay (ms)
timeout: 60000 # Request timeoutTechnology Stack
| Component | Technology |
|---|---|
| Runtime | Node.js 18+ |
| Bot Framework | Yunzai-Bot V3 |
| Database | SQLite (better-sqlite3) |
| Web Framework | Express + Next.js |
| AI Protocol | MCP (Model Context Protocol) |
| Frontend | React, TailwindCSS, Zustand |
Version Updates
Update Public Version
bash
cd plugins/chatgpt-plugin
git pull origin main
pnpm installCheck Current Version
txt
#ai版本Getting Help
- Public Issues: XxxXTeam/chatai-plugin/issues
- Beta Access: https://plugin.openel.top/auth
- Documentation: This site
License
MIT License - Free for personal and commercial use.
Credits
Built with ❤️ by the XxxXTeam.
Special thanks to:
- Yunzai-Bot community
- OpenAI, Anthropic, Google for AI APIs
- MCP protocol contributors