update
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user