update
This commit is contained in:
+8
-3
@@ -539,9 +539,14 @@ function think(a::T)::NamedTuple{(:thoughtdict, :result_raw), Tuple{OrderedDict,
|
|||||||
result_raw = nothing
|
result_raw = nothing
|
||||||
if thoughtdict["action_name"] ∈ ["CHAT_BOX"]
|
if thoughtdict["action_name"] ∈ ["CHAT_BOX"]
|
||||||
|
|
||||||
#WORKING sometime CHAT_BOX input is only a few word. if thoughtdict["action_input] <20
|
# sometime CHAT_BOX input is too short.
|
||||||
# use generatechat!()
|
# if thoughtdict["action_input] < 20 character, use generatechat!()
|
||||||
thoughtdict, result_raw = generatechat!(a)
|
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"
|
elseif thoughtdict["action_name"] == "END_CONVER_GUIDELINE"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user