This commit is contained in:
narawat lamaiin
2024-05-05 23:47:16 +07:00
parent 9e3ab1333b
commit 4e35601e2a
2 changed files with 6 additions and 2 deletions

View File

@@ -242,6 +242,10 @@ function jsoncorrection(a::T1, input::T2,
break
catch e
@warn "Attempting correct JSON string. $attemptround"
e = """$e"""
if occursin("EOF", e)
e = split(e, "EOF")[1] * "EOF"
end
incorrectjson = deepcopy(input)
_prompt =
"""