提交 0b9dbec7 编写于 作者: Chatopera 研发团队's avatar Chatopera 研发团队

https://github.com/chatopera/cosin/issues/344 upgrade chatopera sdk, rename faq threshold params

上级 994cbb37
......@@ -373,7 +373,7 @@
<dependency>
<groupId>com.chatopera.bot</groupId>
<artifactId>sdk</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
</dependency>
</dependencies>
......
......@@ -59,10 +59,10 @@ public class ChatbotEventSubscription {
ChatbotConstants.BOT_PROVIDER, ChatbotConstants.DEFAULT_BOT_PROVIDER);
// FAQ最佳回复阀值
private final static double thresholdFaqBestReply = Double.parseDouble(SystemEnvHelper.getenv(
private final static double faqBestReplyThreshold = Double.parseDouble(SystemEnvHelper.getenv(
ChatbotConstants.THRESHOLD_FAQ_BEST_REPLY, "0.8"));
// FAQ建议回复阀值
private final static double thresholdFaqSuggReply = Double.parseDouble(SystemEnvHelper.getenv(
private final static double faqSuggReplyThreshold = Double.parseDouble(SystemEnvHelper.getenv(
ChatbotConstants.THRESHOLD_FAQ_SUGG_REPLY, "0.6"));
@Autowired
......@@ -98,7 +98,7 @@ public class ChatbotEventSubscription {
com.chatopera.bot.sdk.Chatbot bot = new com.chatopera.bot.sdk.Chatbot(
c.getClientId(), c.getSecret(), botServiecProvider);
JSONObject result = bot.conversation(
request.getUserid(), request.getMessage(), thresholdFaqBestReply, thresholdFaqSuggReply);
request.getUserid(), request.getMessage(), faqBestReplyThreshold, faqSuggReplyThreshold);
// parse response
if (result != null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册