- Replace separate bot-crypto/bot-memories volumes with single bot-data:/data volume so user_keys.json and language_prefs.json persist across restarts - Remove redundant language_prefs.json infrastructure (constant, load/save, dict) — language preference now read from memories (last match wins) - Add robust JSON extraction in _extract_memories (regex fallback for markdown fences, embedded arrays, non-array responses) - Add info-level logging throughout memory extraction pipeline - Add asyncio.wait_for timeout (15s) on memory extraction to prevent hangs - Add !ai memory <fact> command for explicit, reliable memory storage - Update _get_preferred_language to return last match (most recent wins) - Update !ai forget to clear in-memory caches (pending translate/reply) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
427 B
YAML
25 lines
427 B
YAML
services:
|
|
agent:
|
|
build: .
|
|
command: python agent.py start
|
|
env_file: .env
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
|
|
bot:
|
|
build: .
|
|
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-data:/data
|
|
|
|
volumes:
|
|
bot-data:
|