Function calling isn't as reliable as structured output

I’ve found a few issues here:

  1. propertyOrdering doesn’t work in function calling
  2. function calling doesn’t follow anyOf, and hallucinates options for the array.

When I put a field in that lets it tell me what it can see, structured output successfully described the options, while tool calling gives generic stuff like Element1 Element2 (which weren’t the option names)

Hi @dc_l , Welcome to the forum.

Could you share a code snippet that reproduces the issue? It’ll help us speed up the troubleshooting.

Thanks..