Skip to content
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

Add OpenAI JSON Mode #1305

Open
rlouf opened this issue Dec 1, 2024 · 2 comments
Open

Add OpenAI JSON Mode #1305

rlouf opened this issue Dec 1, 2024 · 2 comments
Assignees
Milestone

Comments

@rlouf
Copy link
Member

rlouf commented Dec 1, 2024

No description provided.

@rlouf rlouf added this to the 1.0 milestone Dec 1, 2024
@rlouf rlouf self-assigned this Dec 8, 2024
@lhoestq
Copy link

lhoestq commented Jan 13, 2025

Hi remi ! do you mean response_format={"type": "json_object"} ?

I was recently making a demo using [lotus-ai] https://github.com/guestrin-lab/lotus to process pandas DataFrames with a model on HF but it seems to require JSON mode in outlines.

I also noticed #707 which seems to imply that it could be possible to have a workaround for this feature but it's missing documentation

@rlouf
Copy link
Member Author

rlouf commented Jan 14, 2025

Yes that's what I mean. We have experimental support for JSON mode in outlines. It's a bit hidden in the documentation: https://dottxt-ai.github.io/outlines/latest/reference/generation/cfg/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants