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

Allow server to accept openai's new structured output "json_schema" format. #1677

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cerealbox
Copy link

@cerealbox cerealbox commented Aug 13, 2024

convert openai response_format:
{ type: "json_schema" }
to the response_format llama-cpp-python expects:
{ type: "json_object", "schema": ... }

is this how this should be done?

allow "json_schema" in response_format.
convert openai type 'json_schema' to llama_cpp type 'json_object'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant