https://retellai.com/?utm_source=discord&utm_medium=seo logo
Custom function is missing keys in request:
# ❓・bug-report
q
Call ID: call_c1a95eb71e7ac695bb2ea930637 Custom function has dedicated LLM - GPT5 mini it has 4 properties, however LOG show only 3 properties in the request. How is it possible? missing key is service_id: {{service_id}}
o
Hello @q40478 , GPT5 is not constant with the function calling , try to use GPT 4.1.
q
thanks I will update all custom functions to use GPT 4.1
@Omar Ashraf | Community Lead I have updated to GPT 4.1 however now I get different hallucinations: how this is even possible?? https://cdn.discordapp.com/attachments/1445493119578673213/1445799652992749663/image.png?ex=6931a95a&is=693057da&hm=9ed7e82e30888d14f6a53c25f98b0efa2921da3031513df48ee4f4518445c62f&
o
you want it as exact text ?
put it between " "
q
yes as an exact text, thanks will do.
forgot to tell that my snapshot was from 'form' view cause it was easier to show full body. Original view is in json. and it already has "", so not sure how "" solves it? or should it be like: "description": "'get_service_info'", but that doesn't make sense https://cdn.discordapp.com/attachments/1445493119578673213/1445847212658659378/image.png?ex=6931d5a6&is=69308426&hm=e12ac535ac97559800a0014113b688ab9c256acd74fcb703b549d7ac41b06ca5&
o
So the description should be treated as prompt for the LLM put the function name like this the llm will understand this as prompt not as you want it as exact text , so what you can do is prompt it like this : use this exact text 'get_service_info' .
try this and let me know
q
@Omar Ashraf | Community Lead I did all what you said mate, but this is just not right, once in the blue moon it strikes again and it's not cool. https://cdn.discordapp.com/attachments/1445493119578673213/1447800017178857576/image.png?ex=6938f056&is=69379ed6&hm=335935c3ccc5bcefd370da57ba31ff1d2022e76eeae209a9f8fbc61df4564c7a&
o
There is a new feature , now you can use const (value) , Example : "last_name": { "type": "string", "const": "{{last_name}}" } https://cdn.discordapp.com/attachments/1445493119578673213/1448303681182367886/image.png?ex=693ac569&is=693973e9&hm=7b1bbde942953d6c861375b7ed090373852abeeec4186c366503250da709af79&
q
I have changed "description" --> "const" and Transcript log no longer show what is send to BE. However I get correct data back from BE with response, I assume it could be potential defect. Call ID: call_fbfe6931445f17a353c2a7edcff https://cdn.discordapp.com/attachments/1445493119578673213/1450786216336429256/image.png?ex=6943cd74&is=69427bf4&hm=c2f3495f62554faa2970bc168284dbf70fa06d672e899ac7468881bca3f1b4d9&
o
Thanks @q40478 , I will let the team know about this.
q
any update on that?
o
Hello @q40478 , Yes its expected to not show up but they will be sent out to server successfully , but the team will update it to show up on the tool invocation.
q
great! I assume rest including me would like to see the info that is passed with the webhook 🙂