Hi I am facing some problem while making
# general-english
a
Hi I am facing some problem while making a vapi assistant. Its saying bad request. I am suspecting the function part. Can anyone help me out here? https://cdn.discordapp.com/attachments/1211484481848873020/1263844203369201775/message.txt?ex=669bb623&is=669a64a3&hm=60a0d8036f5b192fbcc96a906bf3bbf962d16df92311889f786961ce4402c31d&
@Sahil can you help?
t
it should be called "functions", not "tools"
also things like "name", "parameters" and everything shouldn't be in quotes. the actual values you assign to eeach param should be in quotes but not the param name
you can't copy paste an assistants config from the vapi GET request. it shows you the general structure of everything but for the websdk at least, not everything is identical
same deal for transcriber. i don't know what environment you're doing this in but you don't give the params quotation marks. im using the widget in the websdk to setup by agent, keep in mind your specific usecase may be a bit different https://cdn.discordapp.com/attachments/1263844203688104077/1263893639059341415/Screenshot_2024-07-19_at_12.20.33_PM.png?ex=669be42d&is=669a92ad&hm=37f0e7e8933b0de177c5f344a254ae42127eeca7df252ba6d435fad6ea32de29&
a
@Tedros am doing it in python
can you paste your function here so that I can compare? It seems like I messed up the structure
t
I won’t paste it here but I can DM to you
By function, do you mean the function tool for the LLM? Or the actual functions I used to utilize it
a
Sure bruh. DM would be fine. I just need a way for the bot to hit a specific endpoint
t
you don't gotta call me 'bruh' lmao
and i sent it. my original JS config and one that should work for your python. only real differences are the booleans (python uses a capital first letter while JS does not) and the comments
2 Views