Tanush
08/31/2024, 9:27 AMVapi
08/31/2024, 9:28 AMtoolType
is correctly set to indicate the type of tool you're using.
Here's what you can do:
1. Review the XML to JSON conversion process on your server to ensure that the function calls are being translated into the correct JSON structure expected by the OpenAI API.
2. Make sure that the toolType
field is included in your JSON payload and that it is set to the appropriate value that corresponds to the tool you're using.
3. If you're unsure about the correct format or the value that should be set for toolType
, please refer to the OpenAI API documentation for guidance on how to structure your API requests.
If you've checked these points and the issue persists, or if you need further assistance with the specific implementation details, please ask support for more info on this.Vapi
08/31/2024, 9:28 AMTanush
08/31/2024, 9:33 AMTanush
08/31/2024, 9:34 AMShubham Bajaj
09/01/2024, 6:25 AMTanush
09/01/2024, 7:48 AMShubham Bajaj
09/01/2024, 12:16 PMendCall
tool and type couldn't match.
instead of creating the function simply add this:
json
tools: [{type: "endCall"}]
Shubham Bajaj
09/01/2024, 12:16 PM