This commit is contained in:
2024-08-28 17:01:51 +07:00
parent 9f80e8359f
commit bc179b2183
2 changed files with 4 additions and 4 deletions

View File

@@ -986,7 +986,7 @@ function think(a::T)::NamedTuple{(:actionname, :result), Tuple{String, String}}
# map action and input() to llm function
response =
if actionname == "CHATBOX"
input = "My plan: $(thoughtDict[:plan])"
input = thoughtDict[:plan]
(result=input, errormsg=nothing, success=true)
elseif actionname == "CHECKINVENTORY"
checkinventory(a, actioninput)
@@ -1250,10 +1250,10 @@ function generatechat(a::companion)
showerror(io, e)
errorMsg = String(take!(io))
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
noise = noises(3, 5)
println("")
println("Attempt $attempt. Error occurred: $errorMsg\n$st")
println("")
noise = noises(3, 5)
end
end
error("generatechat failed to generate an evaluation")