feat(discord-gateway): add local badword pre-filter, accurate token estimation, Piscina maxThreads config, and PromptMode support

This commit is contained in:
MythEclipse
2026-06-02 22:50:23 +07:00
parent 6d2da7ce1d
commit f163ead3cf
4 changed files with 69 additions and 1 deletions
@@ -131,6 +131,8 @@ const configSchema = z
.int()
.positive()
.default(50),
/** Max Piscina worker threads for batch AI analysis (default: os.availableParallelism). */
PISCINA_MAX_THREADS: z.coerce.number().int().positive().optional(),
// AI moderation uses the Primary LLM (AI_LLM_*) endpoint only.
// No NVIDIA or Groq fallback.
AUTO_DELETE_FLAGGED_ENABLED: z