effect
effect copied to clipboard
From Discord: Dealing with Unsupported JSON Schema Keywords in OpenAI Structured Calls
Summary
In the conversation, Jesse Kelly mentions that OpenAI's structured call feature does not support certain JSON Schema keywords like minItems. Maxwell Brown suggests that perhaps @gcanti (Giulio Canti) might have a solution to ensure these keywords do not end up in the JSON Schema, and proposes potentially opening an issue if necessary. Giulio Canti suggests that stripping those unsupported keywords could be a solution, performed as a post-processing step after generating the JSON schema. Consequently, Maxwell Brown decides to open an issue since this would require changes in the AI packages.
Key Takeaways:
- OpenAI currently does not support certain JSON Schema keywords in its structured call feature.
- A potential solution is to remove unsupported keywords through post-processing of the generated JSON schema.
- The community is considering opening an issue to address this limitation in the AI packages.
Discord thread
https://discord.com/channels/795981131316985866/1347319976146767893