cambiado nombre del secreto, gemini api key
All checks were successful
Deploy conversation layer / deploy (push) Successful in 2m3s
All checks were successful
Deploy conversation layer / deploy (push) Successful in 2m3s
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user