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

@@ -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') {

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({