update
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user