https://retellai.com/?utm_source=discord&utm_medium=seo logo
I get the error "Failed to get LLM responseError: ...
# ❓・ai-evy-support
j
@AI Evy I get the error "Failed to get LLM response Error: Internal Server Error " on the second interaction of a flow when I have switched from another flow
a
Thanks for tagging me @jaimeferrer9657. I'll look through relevant sources and get back to you shortly.
### Answer The error "Failed to get LLM response\nError: Internal Server Error" during a flow switch is most often related to an upstream LLM call failure, not an issue with your conversation flow itself. Troubleshooting steps recommended by the Retell team include: - Disable Knowledge Base, MCPs, and Functions, then retry with a minimal prompt to isolate the issue. - If your prompt is large (e.g., ~3k tokens) , reduce its length or decrease the knowledge base chunk size. - Lower the model's max_output_tokens (try 512–1024) and use a known-good model configuration. - If the error persists, it is likely a model provider issue (such as quota, outage, or API key problem) . Test the LLM provider with a direct curl call; if that fails, try a different API key or model. You can find more troubleshooting suggestions in the following discussion: [Internal server Error]() [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Internal server Error](https://discord.com/channels/1186424376300679209/1411371235904065718) ​
j
I don't have a Knowledge Base, I don't have an MCP, I don't have any functions. They are well below 3,000 tokens. I'm using Open AI 4.1 and I tested it with Claude Hayer and it worked without any problems.
@AI Evy I don't have a Knowledge Base, I don't have an MCP, I don't have any functions. They are well below 3,000 tokens. I'm using Open AI 4.1 and I tested it with Claude Hayer and it worked without any problems.
a
Thanks for the follow-up, @jaimeferrer9657. I'll get back to you soon.
### Answer Based on your setup (no Knowledge Base, MCP, or functions, prompt under 3,000 tokens, and using OpenAI 4.1 with successful tests on Claude Hayer) , the Retell AI documentation does not provide additional troubleshooting steps specific to your scenario [(1) ]() [(2) ]() . The error "Failed to get LLM response\nError: Internal Server Error" typically points to an upstream issue with the LLM provider or configuration [(2) ]() . Since Claude works and OpenAI does not, this suggests the problem may be related to the OpenAI API key, quota, or a temporary provider-side issue. Check out these potentially useful sources: - [Update Conversation Flow]() - [Choosing the Best LLM for Your AI Voice Agents | Retell AI]() - [How to Connect Retell AI MCP Server to Claude & More | Retell AI | Retell AI]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) [[2] Choosing the Best LLM for Your AI Voice Agents | Retell AI](https://www.retellai.com/blog/choosing-the-best-llm-for-your-voice-ai-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy You didn't understand it, yesterday it worked fine, today it doesn't work with Claude or Open AI.
a
Thanks for the follow-up, @jaimeferrer9657. I'll get back to you soon.
### Answer Since it worked yesterday with both Claude and OpenAI, but now fails with both, this suggests a broader issue—potentially with your Retell AI environment or connectivity to LLM providers, rather than your flow configuration. The documentation recommends checking server logs and ensuring your WebSocket/server setup is stable, as server-side issues or timeouts can cause failures in LLM response retrieval [(1) ]() . Temporary outages or connectivity issues with LLM providers can also trigger these errors [(2) ]() . If the problem affects all models and nothing changed in your setup, it may be a platform or network issue outside your control. If you need further help, you can check: - [Troubleshooting Guide]() - [Choosing the Best LLM for Your AI Voice Agents | Retell AI]() - [Platform Changelogs | Retell AI]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Troubleshooting Guide](https://docs.retellai.com/integrate-llm/troubleshooting) [[2] Choosing the Best LLM for Your AI Voice Agents | Retell AI](https://www.retellai.com/blog/choosing-the-best-llm-for-your-voice-ai-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy I have the problem in the test chat, not in the phone conversation.
a
Thanks for the follow-up, @jaimeferrer9657. I'll get back to you soon.
### Answer The documentation for Retell AI's LLM Playground (test chat) confirms that it is designed for rapid prototyping, debugging, and testing agent responses without making real web or phone calls. You interact with your agent by typing messages in the chat interface, and can test function calls, dynamic variables, and mock custom function responses directly in this environment [(1) ]() . However, there is evidence from community sources that the "Test Chat" module can behave differently than actual phone calls. Specifically, edits to your agent are reflected immediately in the test chat, but phone calls use the last published version of your agent—so discrepancies can arise if you haven't published recent changes [(2) ]() . Additionally, some dynamic variables and function behaviors may only work as expected in the published environment or during real calls [(3) ]() . If you only experience the "Failed to get LLM response\nError: Internal Server Error" in the test chat and not during phone conversations, it suggests the issue may be isolated to the LLM Playground/test chat environment. The official documentation does not provide additional troubleshooting steps for this specific scenario [(1) ]() . Check out these potentially useful sources: - [Manually test your agent]() - ["Test Chat" functions entirely differently from actual call]() - [Discord message from @chandan8764 on 2025-04-03]() Would you like a general an
swer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Manually test your agent](https://docs.retellai.com/test/llm-playground) [[2] "Test Chat" functions entirely differently from actual call](https://discord.com/channels/1186424376300679209/1405212619840819302) [[3] Discord message from @chandan8764 on 2025-04-03](https://discord.com/channels/1186424376300679209/1186462578310910112/1357444322185707590) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.