This commit is contained in:
2024-08-28 22:55:47 +07:00
parent bc179b2183
commit 54dd6a29a6

View File

@@ -1083,7 +1083,7 @@ function generatechat(a::sommelier)
You should then respond to the user with: 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" 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: You should only respond in format as described below:
Mentioning_wine: ... Mentioning_wine: ...
@@ -1253,7 +1253,7 @@ function generatechat(a::companion)
println("") println("")
println("Attempt $attempt. Error occurred: $errorMsg\n$st") println("Attempt $attempt. Error occurred: $errorMsg\n$st")
println("") println("")
noise = noises(3, 5) noise = GeneralUtils.randstrings(3, 5)
end end
end end
error("generatechat failed to generate an evaluation") error("generatechat failed to generate an evaluation")
@@ -1701,12 +1701,13 @@ function generateSituationReport(a, text2textInstructLLM::Function; skiprecent::
eventcount = count("Event_", response) eventcount = count("Event_", response)
if eventcount < (length(events)) # if eventcount < (length(events))
errornote = "Note: You need to summarize event 1) to event $(length(events)))." # errornote = "Note: You need to summarize event 1) to event $(length(events)))."
println("the summary covers $eventcount/$(length(events)) ", @__FILE__, " ", @__LINE__) # println("the summary covers $eventcount/$(length(events)) ", @__FILE__, " ", @__LINE__)
else # else
return Dict(:recap=> response) # return Dict(:recap=> response)
end # end
return Dict(:recap=> response)
end end
error("generateSituationReport failed to generate a thought ", response) error("generateSituationReport failed to generate a thought ", response)
end end