update
This commit is contained in:
@@ -228,7 +228,7 @@ function progressValueEstimator(a::T1, state::T2)::Tuple{String, Integer} where
|
|||||||
"""
|
"""
|
||||||
You should only respond in JSON format as describe below:
|
You should only respond in JSON format as describe below:
|
||||||
{
|
{
|
||||||
"Evaluation": {"evaluation": "your evaluation", "score": your evaluation score}
|
"Evaluation": {"evaluation": "your evaluation", "score": "your evaluation score"}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ function progressValueEstimator(a::T1, state::T2)::Tuple{String, Integer} where
|
|||||||
"""
|
"""
|
||||||
Here is an expected JSON format:
|
Here is an expected JSON format:
|
||||||
{
|
{
|
||||||
"Evaluation": {"evaluation": "...", "score": ...}
|
"Evaluation": {"evaluation": "...", "score": "..."}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
thoughtJsonStr = jsoncorrection(a, _thoughtJsonStr, expectedJsonExample)
|
thoughtJsonStr = jsoncorrection(a, _thoughtJsonStr, expectedJsonExample)
|
||||||
|
|||||||
@@ -242,6 +242,10 @@ function jsoncorrection(a::T1, input::T2,
|
|||||||
break
|
break
|
||||||
catch e
|
catch e
|
||||||
@warn "Attempting correct JSON string. $attemptround"
|
@warn "Attempting correct JSON string. $attemptround"
|
||||||
|
e = """$e"""
|
||||||
|
if occursin("EOF", e)
|
||||||
|
e = split(e, "EOF")[1] * "EOF"
|
||||||
|
end
|
||||||
incorrectjson = deepcopy(input)
|
incorrectjson = deepcopy(input)
|
||||||
_prompt =
|
_prompt =
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user