- 
        Joined 
Oct 10, 2025  
  
    
      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
    
  
  
    
  | import { GoogleGenAI } from "@google/genai"; | |
| const ai = new GoogleGenAI({}); | |
| async function main() { | |
| const response = await ai.models.generateContent({ | |
| model: "gemini-2.5-flash", | |
| contents: "Explain how AI works in a few words", | |
| }); | |
| console.log(response.text); | 
  
    
      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
    
  
  
    
  | /*Case ai buat base bkt console*/ | |
| case "ai": | |
| if (!args[0]) { | |
| warn("Masukkan teks untuk dikirim ke AI!"); | |
| continue; | |
| } | |
| const fetch = (await import("node-fetch")).default; | |
| const prompt = args.join(" "); | |
| text("...memproses permintaan ke AI..."); | |
| try { |