Assistant unexpectedly uses end call tool.
# support
d
Hey, we have an issue where the agent uses the end call function immediately after using another tool. Also, we have a warning about AI model tools incompatibility in logs. Can it be the reason it is happening? For now, we encountered this issue only for this assistant, previously, this model worked well with tools. Call ID: d3bd4209-a1af-4a10-ac4c-1d9bb45f10e2 https://cdn.discordapp.com/attachments/1354414873249058978/1354414873467027556/Screenshot_2025-03-26_at_13.12.20.png?ex=67e534a5&is=67e3e325&hm=e106e38a8a8b9e06c0c0effa04208551a9105337259910d3e742a49ae38670b6&
v
Hi there! 👋 I see you're experiencing an issue with your assistant unexpectedly using the end call function right after using another tool. Let me help you understand what's happening! Based on the logs you've shared, I can confirm that AI model tools incompatibility is very likely the cause of this issue. The warning in your logs specifically states: "**[WARN]** Model request failed (attempt #1, reason: tools is not supported in this model...)" which is a clear indication of the problem. Looking at your logs more closely, I can see that: 1. The system first tried to use
chatgpt-4o-latest
but failed because "tools is not supported in this model" 2. Then it fell back to
gpt-4o-2024-08-06
from Azure OpenAI 3. After that, the model called the
grado_di_soddisfazione
tool and immediately called the
end_call()
tool According to information I've found, this is a known issue. [AI model tools incompatibility can indeed cause the unexpected use of the
endCall
tool](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1270786139355090995) in voice AI agents. The model
gpt-4o-2024-08-06
specifically has been reported to have issues with tools support, as indicated by similar warning messages in other cases. Some potential solutions you might try: - Switch to a model that fully supports tools, such as the standard
gpt-4o
(not the dated version) - Review your tool configurations to ensure they're compatible with the model you're using - Check if there have been any recent updates to your assistant that might have affected tool compatibility Would you like me to provide more details about other potential causes of unexpected end call tool usage, or do you need help implementing any of these solutions? Source: - [Discord thread about AI model tools incompatibility](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1270786139355090995)
s
Hey, Dmytro, you need to change your model from ChatGPT 4 latest to gpt-4o, and then it will work. So give it a try and let me know how it goes for you.
d
Hey, we tried gpt-4o in combination with propmt enhancements (explicit instructions on end call function), and it solved our issue, thanks.
s
Marking this ticket as Solved ✅