perf(discord-gateway): start AI moderation analysis immediately, running attachment uploads in parallel instead of blocking

This commit is contained in:
MythEclipse
2026-06-02 22:49:57 +07:00
parent b0a879647e
commit 6d2da7ce1d
4 changed files with 68 additions and 3 deletions
@@ -184,9 +184,15 @@ CRITICAL:
// Composer: assembles all sections with XML delimiters
// ---------------------------------------------------------------------------
/** Prompt mode — determines which few-shot example section is included. */
export type PromptMode = "text" | "media" | "mixed";
export interface BuildSystemPromptOptions {
contextText: string;
includeMediaInstructions: boolean;
/** Prompt mode — determines which sections are included. */
mode: PromptMode;
/** @deprecated Use `mode` instead. */
includeMediaInstructions?: boolean;
correction?: { error: string; preview: string };
}