RD7 Consultoria | Marketing e Vendas

Beta IA Seth

const { GoogleGenerativeAI, HarmCategory, HarmBlockThreshold, } = require(“@google/generative-ai”); const apiKey = process.env.GEMINI_API_KEY; const genAI = new GoogleGenerativeAI(apiKey); const model = genAI.getGenerativeModel({ model: “tunedModels/fine-tuning-ia-rd7-seth-12-v1dkev1ye67o”, }); const generationConfig = { temperature: 1, topP: 0.95, topK: 64, maxOutputTokens: 8192, responseMimeType: “text/plain”, }; async function run() { const chatSession = model.startChat({ generationConfig, history: [ ], }); const result = await chatSession.sendMessage(“INSERT_INPUT_HERE”); console.log(result.response.text()); } run();