I don't think openai models supports this pattern. You can only have array of fixed types. Or basically keys should be same. See [1]
[1]: https://platform.openai.com/docs/guides/structured-outputs/s...