fix(discord-gateway): update tiktoken import to encoding_for_model and replace includeMediaInstructions boolean with mode enum
This commit is contained in:
@@ -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>`;
|
||||||
|
|||||||
Reference in New Issue
Block a user