VAPI changing tool parameters to snake_case from c...
# support
t
VAPI is converting my tool parameters to snake case for the call. This is the input I gave the assistant for this function. This is directly from the response to an assistant request.
Copy code
json
{
  "type": "function",
  "function": {
    "name": "createEstimate-a1329",
    "description": "Create Estimate",
    "parameters": {
      "type": "object",
      "required": [],
      "properties": {
        "note": {
          "type": "string",
          "title": "Note"
        },
        "schedule": {
          "type": "object",
          "title": "Schedule",
          "required": [],
          "properties": {
            "endTime": {
              "type": "string",
              "title": "End Time"
            },
            "startTime": {
              "type": "string",
              "title": "Start Time"
            }
          }
        }
      }
    }
  }
}
During the call, the bot sees the parameters as end_time and start_time, breaking my connections. This was checked over multiple calls. Every single time, it treated startTime and endTime as snake_case. When asked directly (without leading it) what case the parameters are, it says snake case every time. A call ID is d64f08ea-906f-429f-a358-0e8b5020743d
Another call ID is fe5b6259-cbea-4d36-b34f-b477e3ffcdaf
k
Hey taco, thanks for sharing the call ID. Let me look into this and get back to you.
Hello Taco, could you please try again? This issue should not recur by now. If so, please share the call ID.
t
Thank you!
k
checking if this is resolved/solved for you?
t
Yes, this is. I added the Solved tag. Thank you!
v
I'm glad to hear that the issue with parameter case conversion has been resolved for you! If you have any more questions or need further assistance in the future, feel free to reach out. Thanks for confirming the resolution and for your patience throughout the process.