You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notably, the types are sets, which gets correctly converted to JSON lists, and which is technically a valid schema but can cause issues. For example the OpenAI API doesn't recognize that format, it expects a single type rather than an array of types.
If there is only one type I would suggest making it a single value rather than an array.
Thanks for this library! The infer function is awesome!
The text was updated successfully, but these errors were encountered:
The README states that this:
Will generate this:
However, for me, using version
0.4.1
, it generates this:Notably, the types are sets, which gets correctly converted to JSON lists, and which is technically a valid schema but can cause issues. For example the OpenAI API doesn't recognize that format, it expects a single type rather than an array of types.
If there is only one type I would suggest making it a single value rather than an array.
Thanks for this library! The infer function is awesome!
The text was updated successfully, but these errors were encountered: