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

json-schema-to-grammar: fix order of props in C++, support non-string const/enum #6232

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

ochafik
Copy link
Collaborator

@ochafik ochafik commented Mar 22, 2024

Tiny follow-ups to #5978.

Had to switch server to using json = nlohmann::ordered_json, which should otherwise be inconsequential.

(respecting the schema's order is important as it allows "output engineering", e.g. ask the structured output to start with the model's "thoughts" before giving its answer)

@ochafik ochafik marked this pull request as ready for review March 22, 2024 12:45
@ggerganov ggerganov merged commit 72114ed into ggerganov:master Mar 22, 2024
46 checks passed
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
…rganov#6232)

* json: ordered json in server/schema converter to respect orig order

* json: ws nits

* json: support non-string const / enums
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 3, 2024
…rganov#6232)

* json: ordered json in server/schema converter to respect orig order

* json: ws nits

* json: support non-string const / enums
tybalex pushed a commit to tybalex/function.cpp that referenced this pull request Apr 17, 2024
…rganov#6232)

* json: ordered json in server/schema converter to respect orig order

* json: ws nits

* json: support non-string const / enums
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.

None yet

2 participants