-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Union Types in Definition Struct for JSON Schema #832
Comments
Hi @vish0l #831 will solve this as well. Since it will allow you to pass the schema directly.
Hope this helps |
Thank you for your response, @samarthpatil00. In my use case, I need a structured output, but I won't be using any external functions or tools. |
@vish0l you can still use tools to get the argument it passes to function and use them as the structured output
|
what's the point of doing that when straight forward structured output functionality is available 🙂 |
Is your feature request related to a problem? Please describe.
The Definition struct currently does not support multiple data types, limiting the flexibility needed for certain JSON schema definitions. According to OpenAI’s documentation, it is possible to emulate optional parameters by using a union type with multiple data types, which is not currently supported by the existing struct.
The text was updated successfully, but these errors were encountered: