diff --git a/src/interface.jl b/src/interface.jl index 9b8ce55..25eb349 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -539,9 +539,14 @@ function think(a::T)::NamedTuple{(:thoughtdict, :result_raw), Tuple{OrderedDict, result_raw = nothing if thoughtdict["action_name"] ∈ ["CHAT_BOX"] - #WORKING sometime CHAT_BOX input is only a few word. if thoughtdict["action_input] <20 - # use generatechat!() - thoughtdict, result_raw = generatechat!(a) + # sometime CHAT_BOX input is too short. + # if thoughtdict["action_input] < 20 character, use generatechat!() + if length(thoughtdict["action_input"]) < 20 + thoughtdict, result_raw = generatechat!(a) + else + thoughtdict["action_result"] = "Action result is the next user dialogue." + result_raw = thoughtdict["action_input"] + end elseif thoughtdict["action_name"] == "END_CONVER_GUIDELINE"