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:
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