fix(discord-gateway): update tiktoken import to encoding_for_model and replace includeMediaInstructions boolean with mode enum

This commit is contained in:
MythEclipse
2026-06-02 22:52:05 +07:00
parent acb7e86f07
commit 8150c5a20c
@@ -1346,7 +1346,7 @@ async function _runSingleMediaAnalysis(
// Modular system prompt with XML delimiters (R1, R7, R8) // Modular system prompt with XML delimiters (R1, R7, R8)
const systemText = buildSystemPromptModular({ const systemText = buildSystemPromptModular({
contextText, contextText,
includeMediaInstructions: true, mode: "mixed",
}); });
const userContent = `${systemText}\n\n<messages_to_analyze>\n${messageBlock}\n</messages_to_analyze>`; const userContent = `${systemText}\n\n<messages_to_analyze>\n${messageBlock}\n</messages_to_analyze>`;