This commit is contained in:
2023-11-02 14:32:52 +00:00
parent 913e563660
commit a2dd655f2a

View File

@@ -279,7 +279,7 @@ function identifyUserIntention(a::agent, usermsg::String)
# send prompt
CommUtils.request(a.mqttClient, msg, pubtopic=a.mqttClient.pubtopic.llmAI)
starttime = Dates.now()
timeout = 10
timeout = 30
result = nothing
while true
@@ -287,7 +287,7 @@ function identifyUserIntention(a::agent, usermsg::String)
CommUtils.mqttRun(a.mqttClient, payloadChannel)#BUG no msg received
if isready(payloadChannel)
topic, payload = take!(payloadChannel)
if payload[:msgMeta][:repondToMsgId] == msgPrompt[:msgMeta][:msgId]
if payload[:msgMeta][:repondToMsgId] == msg[:msgMeta][:msgId]
result = payload[:txt]
break
end