feat(moderation): add support for vision model in moderation analysis

This commit is contained in:
MythEclipse
2026-05-31 20:12:16 +07:00
parent 47bac6ff8f
commit 34c4e3e017
5 changed files with 22 additions and 41 deletions
+1 -1
View File
@@ -769,7 +769,7 @@ export async function runModerationAnalysis(
): Promise<string | null> => {
try {
const completion = await openai.chat.completions.create({
model: config.AI_LLM_MODEL,
model: config.AI_LLM_VISION_MODEL ?? config.AI_LLM_MODEL,
messages: [
{
role: "user",