simon_digilov
08/01/2025, 3:26 PMAI Evy
08/01/2025, 3:26 PMAI Evy
08/01/2025, 3:27 PMtool_call_strict_mode [(2) ]() [(3) ]() :
javascript
const llmResponse = await client.llm.create({
model: "gpt-4.1",
tool_call_strict_mode: true
}) ;
[(2) ]()
The tool_call_strict_mode parameter uses structured output to ensure tool call arguments follow the JSON schema, which may help with function calling consistency [(2) ]() [(3) ]() . Note that this feature is only applicable when the model is GPT-4o or GPT-4o mini , so it may not be available for GPT-4.1.
Based on community experience, users have reverted back to GPT-4o due to these issues [(1) ]() , as "GPT-4o gives the best balance of quality, speed, and cost" . You might consider using GPT-4o instead, which is available as a model option [(2) ]() [(3) ]() and appears to have more reliable function calling behavior.AI Evy
08/01/2025, 3:27 PMAI Evy
08/01/2025, 3:27 PMsimon_digilov
08/01/2025, 3:31 PMsimon_digilov
08/01/2025, 3:31 PMAI Evy
08/01/2025, 3:31 PMAI Evy
08/01/2025, 3:32 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
}) ;AI Evy
08/01/2025, 3:32 PMAI Evy
08/01/2025, 3:32 PMAI Evy
08/01/2025, 3:32 PM