Files
Dad-bot/docker-compose.yml
T
Suppai_NekoandDadBot 495b7aaaba Persist channel history, add fetch_channel_history tool, fix Qwen tool-use reliability
- Persist per-channel rolling history to disk (channel_history.json) so
  context survives bot restarts
- Add fetch_channel_history tool so the bot can pull Discord channel history
  on demand when it needs more context (e.g. first mention in a channel)
- Add _ensure_user_tail() called proactively before every LLM call to
  prevent Qwen "No user query found" template errors after tool results
- Set tool_choice="required" on the first agent call to guarantee the bot
  always uses a tool before replying; subsequent calls use "auto"

Co-Authored-By: DadBot <dadbot@localhost>
2026-03-25 16:53:32 -07:00

30 lines
862 B
YAML

services:
discordbot:
build: .
restart: on-failure
deploy:
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 5
window: 120s
env_file: .env
volumes:
- ./dossiers.json:/app/dossiers.json
- ./personality.txt:/app/personality.txt
- ./reflection_log.txt:/app/reflection_log.txt
- ./personality_changelog.txt:/app/personality_changelog.txt
- ./reflection_notes.txt:/app/reflection_notes.txt
- ./used_topics.json:/app/used_topics.json
- ./life_events.json:/app/life_events.json
- ./used_life_events.json:/app/used_life_events.json
- ./life_history.txt:/app/life_history.txt
- ./life_sim_log.txt:/app/life_sim_log.txt
networks:
- litellm_net
networks:
litellm_net:
external: true
name: aiplayground_litellm_internal