-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
85 lines (74 loc) · 2.66 KB
/
Copy path.env.example
File metadata and controls
85 lines (74 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Discord credentials and destinations. Keep real IDs and tokens only in .env.
DISCORD_TOKEN=
DISCORD_GUILD_ID=
LOG_CHANNEL_ID=
SIGN_CHANNEL_ID=
BOOK_CHANNEL_ID=
# Authenticate every automated logging source before parsing its content.
SOURCE_BOT_IDS=replace-with-logging-bot-id
SOURCE_WEBHOOK_IDS=
ALLOW_ANY_SOURCE=false
TRANSLATE_HUMAN_MESSAGES=false
# Skip translation for content authored by these Minecraft players. Names are
# comma-separated and matched case-insensitively by exact name. Local risk
# checks remain active.
IGNORED_PLAYER_NAMES=
# Ollama rollout:
# - off: keep the loopback-only legacy LibreTranslate output; do not call Ollama
# - shadow: keep legacy output and evaluate Ollama privately in the background
# - active: Ollama alone decides whether a translation is shown; never fall back
OLLAMA_MODE=active
# The production bot and Ollama should normally share a host. If they do not,
# create a private loopback SSH tunnel and keep this URL on 127.0.0.1.
OLLAMA_BASE_URL=http://127.0.0.1:11434
OLLAMA_MODEL=qwen3:8b
OLLAMA_TIMEOUT_MS=45000
OLLAMA_STATUS_TIMEOUT_MS=2000
OLLAMA_KEEP_ALIVE=5m
OLLAMA_MIN_CONFIDENCE=0.90
OLLAMA_MAX_INPUT_CHARS=1200
OLLAMA_MAX_OUTPUT_TOKENS=256
OLLAMA_MAX_RESPONSE_BYTES=65536
# Local resource protection. Defaults match a single-parallel Ollama service.
OLLAMA_MAX_CONCURRENCY=1
OLLAMA_QUEUE_LIMIT=16
OLLAMA_CIRCUIT_FAILURE_THRESHOLD=3
OLLAMA_CIRCUIT_COOLDOWN_MS=60000
TRANSLATION_CACHE_MAX_ENTRIES=2000
TRANSLATION_CACHE_TTL_MS=21600000
# Bounded in-memory context; no history or cache is written to disk.
CONTEXT_MAX_CONVERSATIONS=500
CONTEXT_MESSAGE_LIMIT=5
CONTEXT_MAX_CHARS=2000
CONTEXT_TTL_MS=600000
# Discord event work is bounded separately from Ollama work.
MESSAGE_MAX_CONCURRENCY=2
MESSAGE_QUEUE_LIMIT=100
MESSAGE_MAX_INSPECTED_CHARS=100000
MESSAGE_MAX_CANDIDATES=16
MESSAGE_MAX_CANDIDATE_CHARS=20000
MESSAGE_PROCESSING_BUDGET_MS=60000
MESSAGE_MAX_OUTPUT_CHARS=15200
MESSAGE_MAX_OUTPUT_CHUNKS=8
PRIVACY_METRICS_INTERVAL_MS=300000
HEALTH_SNAPSHOT_INTERVAL_MS=30000
TARGET_LANG=en
MAX_TRANSLATIONS_PER_MESSAGE=1
MAX_ORIGINAL_LENGTH=600
MAX_TRANSLATION_LENGTH=600
# Existing deterministic moderation hints remain independent from translation.
ENABLE_RISK_FLAG=true
FLAGGED_TERMS=
# Legacy local provider settings, used only in off or shadow mode.
LIBRETRANSLATE_URL=http://127.0.0.1:5000
LIBRETRANSLATE_API_KEY=
LIBRETRANSLATE_MAX_RESPONSE_BYTES=65536
TRANSLATION_ALTERNATIVES=2
MIN_DETECTION_CONFIDENCE=0.5
CONTEXT_LANGUAGE_CONFIDENCE=0.65
TRANSLATION_TIMEOUT_MS=12000
TRANSLATION_DELAY_MS=800
# Managed-service logs are private, bounded, and rotated independently.
SERVICE_LOG_MAX_SIZE_MB=10
SERVICE_LOG_MAX_FILES=5
SERVICE_LOG_MIN_FREE_MB=256