cambiando dev variables
This commit is contained in:
@@ -45,7 +45,7 @@ console.log(`Using Gemini API key: ${API_KEY}`);
|
||||
|
||||
const genAI = API_KEY ? new GoogleGenAI({ apiKey: API_KEY }) : null;
|
||||
|
||||
const MCP_URL = process.env.MCP_URL || 'http://planilla.interno.com/mcp';
|
||||
const MCP_URL = process.env.MCP_URL || 'http://localhost:5000/mcp';
|
||||
let mcpClient: Client | undefined;
|
||||
let mcpTransport: StreamableHTTPClientTransport | undefined;
|
||||
|
||||
|
||||
3643
whatsapp-router/package-lock.json
generated
3643
whatsapp-router/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ dotenv.config();
|
||||
export type Handler = string | ((conv: Conversation) => Promise<string>);
|
||||
|
||||
export const chatHandlers: Record<string, Handler> = {
|
||||
'50498554225@c.us': process.env.CONVERSATION_AGENT_URL || 'http://conversation-layer-agent:8001',
|
||||
'50498554225@c.us': process.env.CONVERSATION_AGENT_URL || 'http://localhost:8001',
|
||||
// Add other mappings like:
|
||||
// '50496210031@c.us': 'http://llm-agent:8000'
|
||||
};
|
||||
|
||||
@@ -66,7 +66,7 @@ export function registerWebhookRoutes(
|
||||
|
||||
// Corrected Gemini API call structure
|
||||
const result = await genAI.models.generateContent({
|
||||
model: 'gemini-pro', // Ensure this model supports inline audio or use appropriate one
|
||||
model: 'gemini-2.0-flash', // Ensure this model supports inline audio or use appropriate one
|
||||
contents: [
|
||||
{ inlineData: { mimeType: 'audio/ogg', data: audioBase64 } },
|
||||
{ text: 'Generate a transcript of the speech.' },
|
||||
|
||||
Reference in New Issue
Block a user