This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Sumber: https://whatsapp.com/channel/0029Vb7Dpq5GZNCu2OKoZl15 | |
| * Mengirim pesan ke Gandalf API Lakera | |
| * @param {string} prompt - Pesan yang ingin dikirim | |
| * @param {string} defender - Level defender (default: 'baseline') | |
| * @returns {Promise<Object>} Response dari API | |
| */ | |
| async function sendGandalfMessage(prompt, defender = 'baseline') { | |
| const url = 'https://gandalf-api.lakera.ai/api/send-message'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Sumber: https://whatsapp.com/channel/0029Vb7Dpq5GZNCu2OKoZl15 | |
| */ | |
| const axios = require('axios'); | |
| const FormData = require('form-data'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| class ScispaceAIDetector { |