feat(CF-1189): Add AI text bot + WildFiles RAG integration

Extends bot.py with text message handling:
- RoomMessageText callback with @mention detection
- LLM responses via LiteLLM (OpenAI-compatible)
- WildFiles document search (DocumentRAG class)
- Per-room model selection via room state events
- Commands: !ai help/models/set-model/search
- Typing indicators during AI response generation
- 30s staleness check to avoid replaying history

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-02-15 18:10:28 +02:00
parent 2917f6515a
commit 2c60a1562c
3 changed files with 220 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ services:
command: python bot.py
env_file: .env
restart: unless-stopped
environment:
- LITELLM_BASE_URL
- LITELLM_API_KEY
- DEFAULT_MODEL
- WILDFILES_BASE_URL
- WILDFILES_ORG
volumes:
- bot-crypto:/data/crypto_store