Radim Kopp
02/18/2025, 7:14 PMRadim Kopp
02/18/2025, 7:14 PMRadim Kopp
02/18/2025, 7:15 PMRadim Kopp
02/18/2025, 7:17 PMRadim Kopp
02/18/2025, 7:23 PMRadim Kopp
02/18/2025, 7:28 PMRadim Kopp
02/18/2025, 8:32 PMRadim Kopp
02/18/2025, 8:33 PMTitaniumbach
02/18/2025, 10:31 PMSooz
02/18/2025, 10:49 PMpipeline-error-openai-llm-failed
, seemingly out of nowhere—this may be OpenAI specific. We haven't made any changes to app code or assistant responses.
Model request failed (attempt #10, reason: (Invalid schema for function 'schedule-a-callback': In context=(), 'additionalProperties' is required to be supplied and to be false.))
It looks like on the server side, vapi might not be setting the additionalProperties
field, while OpenAI’s api is now expecting it. This could indicate a recent regression or an unannounced contract change on OpenAI’s side, possibly introduced this afternoon.
This is impacting functionality, and we need support. Please advise on how we can proceed. @UserSooz
02/18/2025, 11:25 PMstrict
option in the tool configuration as a workaround.Kyle Brunker
02/19/2025, 8:54 PM{
name: "terminBotSilentTrigger",
function: {
parameters: {
type: "object",
properties: {
// your existing properties here
},
required: ["your_required_fields"],
additionalProperties: false // Add this line
}
}
}
The additionalProperties: false setting ensures that no unexpected properties can be passed to the function. This is a security best practice as it prevents potential injection of unauthorized properties and It follows OpenAI's function calling schema requirementsKyle Brunker
02/19/2025, 8:54 PMRadim Kopp
02/20/2025, 5:40 AMTitaniumbach
02/20/2025, 5:36 PM{
strict: true,
name: "...",
description: "...",
parameters: {
type: "object",
properties: {
...
},
required: ["..."],
// @ts-ignore
additionalProperties: false
},
}
@Shubham Bajaj But at the time when this error occurred, I had already included this (though Node.js threw a type error because the key did not exist, so I don't know if the VAPI SDK actually sent it).
But the error resolved itself over time on my end without changing the function schema. :)Kyle Brunker
02/21/2025, 4:57 AMRadim Kopp
02/21/2025, 4:48 PMTitaniumbach
02/21/2025, 5:21 PM6d1babfe-4e3e-489b-9d4d-773a6959f25a
But it's fixed now and happend only at this time where this issue was created