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

Escape curly braces in the regexes #243

Merged
merged 2 commits into from
Sep 10, 2023

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Aug 16, 2023

Closes #267

Comment on lines +303 to +305
{"title": "Foo", "enum": [".*", r"\s*"], "type": "string"},
r'("\.\*"|"\\s\*")',
[('".*"', True), (r'"\s*"', True), (r'"\.\*"', False)],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new test case that fails without the fixes in this PR.

@rlouf rlouf merged commit 3bf5bd0 into dottxt-ai:main Sep 10, 2023
4 checks passed
@rlouf rlouf deleted the fix-curly-braces-regex branch January 12, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug structured generation Linked to structured generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid JSON generated
2 participants