This commit is contained in:
narawat lamaiin
2024-03-22 18:58:50 +07:00
parent 4b235009a1
commit 145006eba4

View File

@@ -75,7 +75,7 @@ function sendReceivePrompt(a::T1, prompt::String, sendtopic::String;
msgMeta = deepcopy(a.msgMeta)
msgMeta[:sendTopic] = sendtopic
msgMeta[:senderName] = "agent-wine-backend"
msgMeta[:receiverName] = "text2text-llm"
msgMeta[:receiverName] = "text2text"
msgMeta[:replyTopic] = a.config[:receiveinternal][:mqtttopic]
msgMeta[:msgId] = string(uuid4())
@@ -89,6 +89,7 @@ function sendReceivePrompt(a::T1, prompt::String, sendtopic::String;
)
# send prompt
@show outgoing_msg
publish(a.mqttClient, outgoing_msg[:msgMeta][:sendTopic],
JSON3.write(outgoing_msg))