This commit is contained in:
2023-11-16 12:00:54 +00:00
parent 1ecd7b9433
commit cb5c9efa4d

View File

@@ -366,7 +366,9 @@ function conversation(a::T, usermsg::String) where {T<:agent}
respond = replace(respond, "\n<|im_end|>" => "")
_ = addNewMessage(a, "assistant", respond)
elseif userintend == "wine" #WORKING
error("wine done")
elseif userintend == "thought"
else
@@ -564,7 +566,7 @@ function identifyUserIntention(a::T, usermsg::String) where {T<:agent}
<|im_start|>system
You are a helpful assistant. Your job is to determine intention of the question.
If the user question is about general conversation say, "{chat}".
If the user question is related to wine say, "{wine}".
If the user question is about getting wine say, "{wine}".
If the user question is related to your earlier thought say, "{thought}".
Your earlier thought: