kevinstonepdx
10/11/2025, 6:43 PMAI Evy
10/11/2025, 6:43 PMAI Evy
10/11/2025, 6:44 PMjavascript
const res: RetellResponse = {
response_id: request.response_id,
content: "Your response content",
content_complete: true,
end_call: false,
};
ws.send(JSON.stringify(res) ) ;
3. Verify your LLM connection - If you're using a custom LLM integration, check that your LLM client is properly configured and has valid credentials [(3) ]()
4. Use the Debug feature - In the LLM Playground, click the "Debug" button on the agent's response to get suggested solutions [(4) ]()
5. Check for common issues - LLM response problems can stem from latency issues, connection problems, or configuration errors [(5) ]()
If the issue persists after retrying, you may want to contact support for further assistance.AI Evy
10/11/2025, 6:44 PMAI Evy
10/11/2025, 6:44 PMkevinstonepdx
10/11/2025, 6:46 PMAI Evy
10/11/2025, 6:46 PMAI Evy
10/11/2025, 6:47 PMjavascript
export interface FunctionCall {
id: string;
funcName: string;
arguments: Record<string, any>;
result?: string;
}AI Evy
10/11/2025, 6:47 PMAI Evy
10/11/2025, 6:47 PMtool_call_strict_mode setting that's only applicable when the model is gpt-4o or gpt-4o mini [(3) ]() . If set to true, this uses structured output to ensure tool call arguments follow the JSON schema, but requires additional processing time .
## Potential Issues
The error could be caused by:
1. Response format differences - Claude and GPT-4.1 may format function call responses differently
2. Argument parsing - Different models may structure function arguments in ways that cause parsing errors
3. Streaming handling - GPT-4.1 requires careful handling of streaming function call responses [(1) ]()
For complex function calling scenarios like appointment booking, the model needs to handle multi-step processes where it says something during the function call and continues the conversation after [(4) ]() .
I'd recommend checking your function calling implementation to ensure it properly handles the specific response format for your chosen model, and verify that your WebSocket server correctly processes the streaming function call resAI Evy
10/11/2025, 6:47 PMAI Evy
10/11/2025, 6:47 PM