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

Exclude escape character in JSON string fields #829

Merged
merged 1 commit into from
Apr 20, 2024
Merged

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Apr 20, 2024

Closes #759.

Here we forbid the generation of an odd number of escape characters, which would lead to an invallid JSON string.

@rlouf rlouf added structured generation Linked to structured generation JSON labels Apr 20, 2024
@rlouf rlouf merged commit 06d5654 into main Apr 20, 2024
5 checks passed
@rlouf rlouf deleted the exclude-escape-character branch April 20, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JSON structured generation Linked to structured generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON generated with invalid escape characters
1 participant