Phil
05/18/2025, 11:14 AM`data: ${JSON.stringify({
id: ...,
object: "chat.completion.chunk",
created: Math.floor(Date.now() / 1000),
model: modelName,
choices: [
{
index: 0,
delta: {
tool_calls: [
{
index: 0,
id: toolCallId,
type: "function",
function: { name: "endCall", arguments: "{}" },
},
],
},
},
],
})}\n\n`
This seems to be correctly recorded on the VAPI side since I see Model called tool: endCall()
in the call log. However, the call continues.
Any help would be appreciated! Call ID: ce04b053-b250-4ebc-a202-53acd21a9c50
https://cdn.discordapp.com/attachments/1373619775124672594/1373619775346966700/Screenshot_2025-05-18_at_4.13.05_AM.png?ex=682b129b&is=6829c11b&hm=b6ca04c1bd06faf640f636ef5034cc9445189e77e75db386b22c2d7923580a60&Phil
05/18/2025, 7:05 PMShubham Bajaj
05/18/2025, 8:07 PMPhil
05/19/2025, 4:41 AMAditya
05/19/2025, 12:32 PM