cambiado nombre del secreto, gemini api key
All checks were successful
Deploy conversation layer / deploy (push) Successful in 2m3s

This commit is contained in:
2025-06-06 15:28:10 -06:00
parent ea276d5d09
commit 767585b421
2 changed files with 3 additions and 3 deletions

View File

@@ -34,8 +34,8 @@ export async function transcribeAudioMessage(message: WhatsAppMessage): Promise<
const decryptedBuffer = await decryptMedia(enrichedMessage as any);
const base64Audio = decryptedBuffer.toString('base64');
const apiKey = process.env.GOOGLE_API_KEY;
if (!apiKey) throw new Error('Falta GOOGLE_API_KEY');
const apiKey = process.env.GEMINI_API_KEY;
if (!apiKey) throw new Error('Falta GEMINI_API_KEY');
const genAI = new GoogleGenAI({ apiKey });
const result = await genAI.models.generateContent({