update
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user