Skip to content

bugfix: structured output response_format does not match openai #9527

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

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

VJHack
Copy link
Contributor

@VJHack VJHack commented Sep 18, 2024

Fixes bug #9522
OpenAI recently started supporting structured output in their API responses. With this, they modified their api to allow users to enable structured responses.

Old:
response_format: { type: "json_object" }
New:
response_format: { type: "json_schema", json_schema: {"strict": true, "schema": ...} }

@VJHack VJHack changed the title cleaned up pr bugfix: structured output response_format does not match openai Sep 18, 2024
@ggerganov ggerganov merged commit 8a30835 into ggml-org:master Sep 18, 2024
52 checks passed
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants