diff --git a/whatsapp-router/src/index.ts b/whatsapp-router/src/index.ts index 6e07345..1ccf06a 100644 --- a/whatsapp-router/src/index.ts +++ b/whatsapp-router/src/index.ts @@ -21,7 +21,7 @@ console.log(`Open WA URL: ${process.env.OPEN_WA_URL}`); console.log(`Webhook URL: ${process.env.WEBHOOK_URL}`); console.log(`Conversation Agent URL: ${process.env.CONVERSATION_AGENT_URL}`); console.log(`Planilla Agent URL: ${process.env.PLANILLA_AGENT_URL}`); -console.log(`Google API Key: ${process.env.GOOGLE_API_KEY}`); +console.log(`Google API Key: ${process.env.GEMINI_API_KEY}`); if (process.env.NODE_ENV === 'development') { diff --git a/whatsapp-router/src/transcribeAudioMessage.ts b/whatsapp-router/src/transcribeAudioMessage.ts index c84fbc4..76e3dce 100644 --- a/whatsapp-router/src/transcribeAudioMessage.ts +++ b/whatsapp-router/src/transcribeAudioMessage.ts @@ -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({