This commit is contained in:
narawat lamaiin
2024-04-23 10:58:34 +07:00
parent 3b87f53af2
commit d833d5d22e
2 changed files with 13 additions and 11 deletions

View File

@@ -141,8 +141,8 @@ function chat_mistral_openorca(a::agentReflex)
$conversation
<|assistant|>
"""
response = sendReceivePrompt(a, prompt, a.config[:text2text][:mqtttopic],
response = sendReceivePrompt(a, prompt, a.config[:text2textchat][:mqtttopic],
timeout=180, stopword=["<|", "</"])
response = split(response, "<|")[1]
response = split(response, "</")[1]
@@ -193,14 +193,14 @@ function planner_mistral_openorca(a::agentReflex)
# skip objective and plan because LLM is going to generate new plan
shorttermMemory = dictToString(a.memory[:shortterm], skiplist=["Objective:", "Plan 1:"])
@show "---> 2"
aboutYourself =
"""
Your name is $(a.name)
$(a.roles[a.role])
$(a.roleSpecificInstruction[a.role])
"""
@show "---> 3"
# assistant_plan_prompt =
# """
# <s>