Invalid generated enum value
# support
j
I am using tool cals strict functionality with this type schema: "unit": { "type": "string", "enum": [ "kg", "g", "l", "ml", "ud" ] }, But I am receiving an empty string instad. I expect it to just be the values of the enum or missing, but in this case VAPI is sending me an incorrect request para, which then fails the zod validation on my side. Tool call id call_OKmdkuoC9hGozv4Y6gXNx4hx Assistant id: 8b874d03-eeb9-45d9-830b-3bf1fda1886f Call id: 03064fdb-cac3-4167-845f-87ae7b90a8aa
v
Thanks for reporting this issue with the enum values in tool calls. Based on the information you've provided, I'd like to gather a bit more context to help diagnose the problem. Could you share more details about your configuration: 1. Which model are you using with VAPI (e.g., GPT-4, Claude, etc.)? 2. Are you using
parallel_tool_calls
in your configuration? (Since there's a [known conflict](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1326276427628154920) between
strict
and
parallel_tool_calls
) 3. Is this happening consistently with all enum values or only in specific scenarios? 4. Could you share a bit more of your schema definition, particularly how the
unit
property is positioned within the overall schema? 5. Have you tried any workarounds so far? This will help me better understand your specific situation and provide more targeted assistance. Sources: - [Issues with the
strict
parameter and OpenAI models](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1326276427628154920) - [Conflict between
strict
parameter and
parallel_tool_calls
](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1326276427628154920) - [Issues with variable substitution in tool calls](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1321375442644762625)
j
1. gpt4 2. I can not see the link, we are using async 3. Yes it is consistent 4. Th e schema in the following message
@User
k
Thank you for reaching out to us. We've received your message and will get back to you as soon as possible.
Hi, checking if this is resolved/solved for you?
j
@User
2 Views