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:
@@ -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