From a2dd655f2a5b8c2dc2d7540dd142d658a82757cf Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Thu, 2 Nov 2023 14:32:52 +0000 Subject: [PATCH] typo --- src/interface.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 68e2c10..bb4282b 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -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