update
This commit is contained in:
@@ -312,8 +312,8 @@ function planner_mistral_openorca(a::agentReflex)
|
||||
Plan:
|
||||
"""
|
||||
|
||||
response = sendReceivePrompt(a, prompt, a.config[:text2text][:mqtttopic], max_tokens=512,
|
||||
timeout=180, stopword=["<|user|>", "</"])
|
||||
response = sendReceivePrompt(a, prompt, a.config[:text2text][:mqtttopic], max_tokens=1024,
|
||||
timeout=180, stopword=["<|eot_id|>"])
|
||||
|
||||
response = split(response, "<|")[1]
|
||||
response = split(response, "</")[1]
|
||||
@@ -1288,10 +1288,8 @@ function conversation(a::agentReflex, usermsg::String; attemptlimit::Int=3)
|
||||
#TODO paraphrase msg so that it is human friendlier word.
|
||||
else
|
||||
response = chat_mistral_openorca(a)
|
||||
response = split(response, "\n\n")[1]
|
||||
response = split(response, "\n\n")[1]
|
||||
end
|
||||
response = removeTrailingCharacters(response)
|
||||
# response = removeTrailingCharacters(response)
|
||||
_ = addNewMessage(a, "assistant", response)
|
||||
return response
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user