config.toml.global.template 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # API key of the OpenAI-compatible endpoint (required for the AI autoreply).
  2. openai_api_key = ""
  3. # Base URL of the OpenAI-compatible endpoint.
  4. openai_base_url = "https://ollama.com/v1"
  5. # Model used for autoreplies.
  6. openai_model = "deepseek-v4.1-flash"
  7. # Vision model for images (empty or unset disables image understanding).
  8. openai_vision_model = "deepseek-v4.1-flash"
  9. # Append every AI request to ai_requests.log in the data directory.
  10. ai_log = false
  11. # Seconds between autoreplies in a private chat or to a group message addressed to you (0 = no cooldown).
  12. cooldown_seconds = 30
  13. # Seconds between autoreplies to group messages not addressed to you (0 = no cooldown).
  14. group_cooldown_seconds = 300
  15. # After a restart, answer the last unanswered private message if at most this many seconds old (0 = disabled).
  16. catch_up_seconds = 7200
  17. # Retries of a failed AI request, waiting 2s, 4s, ... (0 = no retry; HTTP 4xx other than 429 never retried).
  18. ai_retries = 2
  19. # Web control panel (optional): uncomment to listen on 0.0.0.0:<port>, no authentication.
  20. # Valid range 1-65535; leave unset to disable the panel.
  21. # web_port = 8080
  22. # The system prompt (required for the AI autoreply) is not set here:
  23. # write it in soul.md, next to this file (see soul.md.template).