Updated .env.example to improve clarity and added new configuration options for memory and reliability settings. Refactored main.py to streamline the bot's entry point and improved error handling. Enhanced README to reflect new features and command structure. Removed deprecated cmd_zip_skill and skills_creator modules to clean up the codebase. Updated AIClient and MemorySystem for better performance and flexibility in handling user interactions.
37 lines
746 B
Plaintext
37 lines
746 B
Plaintext
# QQ Bot credentials
|
|
BOT_APPID=your_app_id_here
|
|
BOT_SECRET=your_app_secret_here
|
|
|
|
# Runtime
|
|
APP_ENV=dev
|
|
LOG_LEVEL=INFO
|
|
LOG_FORMAT=text
|
|
SANDBOX_MODE=False
|
|
|
|
# Optional admin allow-list (comma separated user IDs).
|
|
# Empty means all users are treated as admin.
|
|
BOT_ADMIN_IDS=
|
|
|
|
# AI chat model
|
|
AI_PROVIDER=openai
|
|
AI_MODEL=gpt-4
|
|
AI_API_KEY=your_api_key_here
|
|
AI_API_BASE=https://api.openai.com/v1
|
|
|
|
# Embedding model (optional)
|
|
AI_EMBED_PROVIDER=openai
|
|
AI_EMBED_MODEL=text-embedding-3-small
|
|
AI_EMBED_API_KEY=
|
|
AI_EMBED_API_BASE=
|
|
|
|
# Memory storage and retrieval
|
|
AI_USE_VECTOR_DB=true
|
|
AI_USE_QUERY_EMBEDDING=false
|
|
AI_MEMORY_SCOPE=session
|
|
|
|
# Reliability
|
|
AI_CHAT_RETRIES=1
|
|
AI_CHAT_RETRY_BACKOFF_SECONDS=0.8
|
|
MESSAGE_DEDUP_SECONDS=30
|
|
MESSAGE_DEDUP_MAX_SIZE=4096
|