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

Support the new json_mode #1335

Closed
dasheck0 opened this issue Nov 25, 2023 · 1 comment
Closed

Support the new json_mode #1335

dasheck0 opened this issue Nov 25, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dasheck0
Copy link

Is your feature request related to a problem? Please describe.

I want consistent json outputs of my model especially when providing a json schema. However, most models include an explanation to their responses. Prompt engineering is not enough here.

Describe the solution you'd like

OpenAI supports now a json mode that at least guarantees that the output is json. See: https://platform.openai.com/docs/guides/text-generation/json-mode

Describe alternatives you've considered

I looked into manually calculating logits. However, seems to be too complicated for me.

Additional context

@dasheck0 dasheck0 added the enhancement New feature or request label Nov 25, 2023
@mudler
Copy link
Owner

mudler commented Nov 25, 2023

This is already supported in master, been introduced with #1254 . Closing

@mudler mudler closed this as completed Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants