Skip to content

Commit d0df77f

Browse files
authored
Merge pull request cheshire-cat-ai#1070 from davidebizzocchi/develop-fix-escape
Fix escape characters in utils.parse_json
2 parents 4462ce7 + 3ebc9ef commit d0df77f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/cat/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ def parse_json(json_string: str, pydantic_model: BaseModel = None) -> dict:
171171

172172
# clean to help small LLMs
173173
replaces = {
174-
"\_": "_",
175-
"\-": "-",
174+
"\\_": "_",
175+
"\\-": "-",
176176
"None": "null",
177177
"{{": "{",
178178
"}}": "}",

0 commit comments

Comments
 (0)