Some checks failed
BotServer CI / build (push) Failing after 1m34s
Split 20+ files over 1000 lines into focused subdirectories for better maintainability and code organization. All changes maintain backward compatibility through re-export wrappers. Major splits: - attendance/llm_assist.rs (2074→7 modules) - basic/keywords/face_api.rs → face_api/ (7 modules) - basic/keywords/file_operations.rs → file_ops/ (8 modules) - basic/keywords/hear_talk.rs → hearing/ (6 modules) - channels/wechat.rs → wechat/ (10 modules) - channels/youtube.rs → youtube/ (5 modules) - contacts/mod.rs → contacts_api/ (6 modules) - core/bootstrap/mod.rs → bootstrap/ (5 modules) - core/shared/admin.rs → admin_*.rs (5 modules) - designer/canvas.rs → canvas_api/ (6 modules) - designer/mod.rs → designer_api/ (6 modules) - docs/handlers.rs → handlers_api/ (11 modules) - drive/mod.rs → drive_handlers.rs, drive_types.rs - learn/mod.rs → types.rs - main.rs → main_module/ (7 modules) - meet/webinar.rs → webinar_api/ (8 modules) - paper/mod.rs → (10 modules) - security/auth.rs → auth_api/ (7 modules) - security/passkey.rs → (4 modules) - sources/mod.rs → sources_api/ (5 modules) - tasks/mod.rs → task_api/ (5 modules) Stats: 38,040 deletions, 1,315 additions across 318 files Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
# BotServer Embedded Configuration
|
|
# For Orange Pi, Raspberry Pi, and other ARM SBCs
|
|
|
|
# Server
|
|
HOST=0.0.0.0
|
|
PORT=9000
|
|
RUST_LOG=info
|
|
|
|
# Database (SQLite for embedded, no PostgreSQL needed)
|
|
DATABASE_URL=sqlite:///opt/botserver/data/botserver.db
|
|
|
|
# LLM Configuration - Local llama.cpp
|
|
LLM_PROVIDER=llamacpp
|
|
LLM_API_URL=http://127.0.0.1:8080
|
|
LLM_MODEL=tinyllama
|
|
|
|
# Alternative: Use remote API
|
|
# LLM_PROVIDER=openai
|
|
# LLM_API_URL=https://api.openai.com/v1
|
|
# LLM_API_KEY=sk-...
|
|
|
|
# Alternative: Ollama (if installed)
|
|
# LLM_PROVIDER=ollama
|
|
# LLM_API_URL=http://127.0.0.1:11434
|
|
# LLM_MODEL=tinyllama
|
|
|
|
# Memory limits for embedded
|
|
MAX_CONTEXT_TOKENS=2048
|
|
MAX_RESPONSE_TOKENS=512
|
|
STREAMING_ENABLED=true
|
|
|
|
# Embedded UI
|
|
STATIC_FILES_PATH=/opt/botserver/ui
|
|
DEFAULT_UI=embedded
|
|
|
|
# WebSocket
|
|
WS_PING_INTERVAL=30
|
|
WS_TIMEOUT=300
|
|
|
|
# Security (change in production!)
|
|
JWT_SECRET=embedded-change-me-in-production
|
|
CORS_ORIGINS=*
|
|
|
|
# Logging
|
|
LOG_FILE=/opt/botserver/data/botserver.log
|
|
LOG_MAX_SIZE=10M
|
|
LOG_RETENTION=7
|
|
|
|
# Performance tuning for low-memory devices
|
|
# Uncomment for <2GB RAM devices
|
|
# RUST_BACKTRACE=0
|
|
# MALLOC_ARENA_MAX=2
|