This commit is contained in:
2025-03-14 21:57:27 +07:00
parent 696a77a483
commit 323c232121
2 changed files with 12 additions and 14 deletions

View File

@@ -51,9 +51,9 @@ function text2textInstructLLM(prompt::String; maxattempt=3)
)
)
response = nothing #[WORKING] receive nothing when LLM container reset
response = nothing
for attempts in 1:maxattempt
_response = GeneralUtils.sendReceiveMqttMsg(outgoingMsg; timeout=120, maxattempt=2)
_response = GeneralUtils.sendReceiveMqttMsg(outgoingMsg; timeout=180, maxattempt=2)
response = _response[:response][:text]
if response !== nothing
break
@@ -157,7 +157,7 @@ sessionId = "555"
# query = Dict(:text=> "How many wines from France do you have that can be paired with lamb?")
query = "How many wines are from France?"
query = "How many French wines do you have?"
# query = "retailer: Yiem, wine_type: red, sweetness: 1-2, intensity: 4-5, wine price: 20-40"
# query = "wine_type: white, country: United States, sweetness: 1-2, tannin: 3, food to be served with wine: pizza"
# query = "wine_type: white, country: Austria, food to be served with wine: pork"