From 54dd6a29a69b758ad1c6c86ae881a41afb217527 Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Wed, 28 Aug 2024 22:55:47 +0700 Subject: [PATCH] update --- src/interface.jl | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 31bce6f..8646028 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -1083,7 +1083,7 @@ function generatechat(a::sommelier) You should then respond to the user with: 1) Mentioning_wine: Are you going to mentioning specific wine name to the user? Can be "Yes" or "No" - 2) Chat: Given the situation, what would you say to convey your thoughts to the user? + 2) Chat: Given the situation, what would you say to the user? You should only respond in format as described below: Mentioning_wine: ... @@ -1253,7 +1253,7 @@ function generatechat(a::companion) println("") println("Attempt $attempt. Error occurred: $errorMsg\n$st") println("") - noise = noises(3, 5) + noise = GeneralUtils.randstrings(3, 5) end end error("generatechat failed to generate an evaluation") @@ -1701,12 +1701,13 @@ function generateSituationReport(a, text2textInstructLLM::Function; skiprecent:: eventcount = count("Event_", response) - if eventcount < (length(events)) - errornote = "Note: You need to summarize event 1) to event $(length(events)))." - println("the summary covers $eventcount/$(length(events)) ", @__FILE__, " ", @__LINE__) - else - return Dict(:recap=> response) - end + # if eventcount < (length(events)) + # errornote = "Note: You need to summarize event 1) to event $(length(events)))." + # println("the summary covers $eventcount/$(length(events)) ", @__FILE__, " ", @__LINE__) + # else + # return Dict(:recap=> response) + # end + return Dict(:recap=> response) end error("generateSituationReport failed to generate a thought ", response) end