Closed lapp0 closed 1 week ago
Fixes https://github.com/outlines-dev/outlines/issues/935
On main in json_schema.py,
main
json_schema.py
STRING_INNER = r'([^"\\\x00-\x1f\x7f-\x9f]|\\\\)'
This pattern requires \ to be followed by a second \.
\
\\ is legal, \" is not.
\\
\"
Modify the pattern so \\ AND \" are allowed.
Fixes https://github.com/outlines-dev/outlines/issues/935
Problem
On
main
injson_schema.py
,STRING_INNER = r'([^"\\\x00-\x1f\x7f-\x9f]|\\\\)'
This pattern requires
\
to be followed by a second\
.\\
is legal,\"
is not.Solution
Modify the pattern so
\\
AND\"
are allowed.