https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> why the custom LLM does not...
# ❓・ai-evy-support
s
@AI Evy why the custom LLM does not work? I can't even use the sample code that you provide in the docs
a
Thanks for tagging me @sero_38328. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Integrate LLM]() * [LLM WebSocket]() * [Integrate Function Calling]() * [Custom LLM Best Practices]() -----------------------------
### Answer The example repos for custom LLM integration are currently outdated [(1)]() . However, you can find working code examples in: For Node.js: - [Azure OpenAI]() - [OpenAI]() - [OpenRouter]() For Python: - [OpenAI]() Additionally, if you're using the new dashboard version and encountering a 500 error while testing custom functions, this appears to be a known issue - you can switch to the legacy dashboard by clicking on your account icon at the bottom left corner to test your custom functions [(2)]() . For optimal performance, consider these best practices: - Keep prompts concise as longer prompts can harm performance - If using a large knowledge base, consider using RAG to filter relevant information - When using function calling, set lower temperature for better accuracy [(3)]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.
s
@User I'm having issues connecting to the agent through the custom LLM configuration: - agent_18d512252e4aa4f539a2f33c82 - call_28e1645cf3370bd4b9d687e9faa here are my logs: 2025-04-09 02:43:00.100 call_28e1645cf3370bd4b9d687e9faa info: Starting call: call_28e1645cf3370bd4b9d687e9faa 2025-04-09 02:43:00.103 call_28e1645cf3370bd4b9d687e9faa info: LLM Ws init attempt 0 2025-04-09 02:43:00.412 call_28e1645cf3370bd4b9d687e9faa info: LLM ws open: { call_id: 'call_28e1645cf3370bd4b9d687e9faa', call_type: 'web_call', agent_id: 'agent_18d512252e4aa4f539a2f33c82', call_status: 'registered', latency: {}, call_cost: { total_duration_unit_price: 0, product_costs: [], total_one_time_price: 0, combined_cost: 0, total_duration_seconds: 0 }, opt_out_sensitive_data_storage: false, access_token: 'eyJhbGciOiJIUzI1NiJ9.eyJ2aWRlbyI6eyJyb29tSm9pbiI6dHJ1ZSwicm9vbSI6IndlYl9jYWxsXzI4ZTE2NDVjZjMzNzBiZDRiOWQ2ODdlOWZhYSJ9LCJpc3MiOiJBUElqWGZBMzVHTmM3WHgiLCJleHAiOjE3NDQxNjcxODAsIm5iZiI6MCwic3ViIjoiY2xpZW50In0.I2FXe5sGJ7939gjcBAlM0urHf71u_wm_8D6w03fytxY' } 2025-04-09 02:43:00.560 call_28e1645cf3370bd4b9d687e9faa info: Webhook triggered for call_started 2025-04-09 02:43:25.292 call_28e1645cf3370bd4b9d687e9faa info: Webhook response received for call_started 2025-04-09 02:43:52.894 call_28e1645cf3370bd4b9d687e9faa info: Ending call: call_28e1645cf3370bd4b9d687e9faa 2025-04-09 02:43:52.895 call_28e1645cf3370bd4b9d687e9faa info: Closing LLM ws as requested. 2025-04-09 02:43:53.289 call_28e1645cf3370bd4b9d687e9faa info: Webhook triggered for call_ended 2025-04-09 02:43:53.291 call_28e1645cf3370bd4b9d687e9faa info: Webhook triggered for call_analyzed 2025-04-09 02:43:57.174 call_28e1645cf3370bd4b9d687e9faa info: Webhook response received for call_analyzed please help, everything is working, local websocket connection messages configuration, everything works, except retell connection
thanks in advance @User , in addition to the above error description I just wanted to highlight that not even the message with the configuration is getting logged, even though I added a configuration for testing, previously I was able to debug using these logs, now I get nothing here
never mind, it was an issue with ngrok, not retell