refactor(ai-moderation): fix all 8 issues per review
- #2: Duplikasi contoh → single-source ALL_EXAMPLES array + formatExamples() - #3: Hierarki evasion → Level 1 (Wajib Flag) vs Level 2 (Pilih Clean) - #4: Dead code → remove duplicate PromptMode, cleanup - #5: Sanitasi AI content → sanitizeAiContent() + CDATA wrapping for channel culture & user profile (prevents prompt injection) - #6: Contoh personality → match actual XML format (<message>, <user_profile>, <content> tags instead of plain text) - #7: Contoh invite link → example #29 added - #8: 'Deskripsi selesai.' removed from stickerPrompt.ts - Image analysis balance: teks = gambar (equal weight), no more bias - Removed LGBT exclusion from SYSTEM_RULES - Removed all template fallback language, enforce specific descriptions
This commit is contained in:
@@ -142,6 +142,5 @@ export function buildGeneralImageVisionPrompt(
|
||||
``,
|
||||
`Format jawaban: Deskripsi singkat 2-3 kalimat dalam Bahasa Indonesia.`,
|
||||
`Mulai dengan menyebutkan JENIS gambar (screenshot/foto/kartun/dokumen).`,
|
||||
`Akhiri dengan "Deskripsi selesai."`,
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user