This commit is contained in:
narawat lamaiin
2024-03-20 16:51:33 +07:00
parent 56a40ee894
commit d6d74fed6c
2 changed files with 4 additions and 2 deletions

View File

@@ -142,7 +142,8 @@ function chat_mistral_openorca(a::agentReflex)
<|assistant|>
"""
response = sendReceivePrompt(a, prompt, timeout=180, stopword=["<|", "</"])
response = sendReceivePrompt(a, prompt, a.config[:text2text][:mqtttopic],
timeout=180, stopword=["<|", "</"])
response = split(response, "<|")[1]
response = split(response, "</")[1]

View File

@@ -442,7 +442,8 @@ function isUsePlans(a::agentReflex)
isuseplan = true
else
# if LLM mentions any tools, use Plan/Thought/Act loop
response = sendReceivePrompt(a, prompt, temperature=0.2, max_tokens=64, stopword=["<|", "</"])
response = sendReceivePrompt(a, prompt, a.config[:text2text][:mqtttopic], max_tokens=64,
timeout=180, stopword=["<|", "</"])
response = split(response, "<|")[1]
if occursin("yes", String(response))
isuseplan = true