UI/UX: Adiciona campo opcional para colagem manual de transcrição no VideoMind
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
require('dotenv').config();
|
||||
const apiKey = process.env.GOOGLE_AI_API_KEY;
|
||||
fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=${apiKey}`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
contents: [{ parts: [{ text: "Por favor, resuma o que é falado neste vídeo: https://www.youtube.com/watch?v=0g7qSGQIoxw" }] }]
|
||||
})
|
||||
}).then(r => r.json()).then(j => console.dir(j, {depth: null})).catch(console.error);
|
||||
Reference in New Issue
Block a user