Allow for Pydantic model field structured output without JSON schema validation #1100
ncoop57
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Howdy, really enjoy outlines, but ran into an issue when attempting to generate code using the current json structured output feature. Right now, I am wanting to generate data for a schema that looks like this:
However, since the constrained output of the model is required to be valid json, the model fails to escape things like newlines or quotation marks reliably leading the model's output to be terrible for this task. Instructor lib has a nice way of handling this and I quite like their API and was wondering if it would be possible to have something similar with outlines so I don't need to use both for my project.
Beta Was this translation helpful? Give feedback.
All reactions