From d3fd87cc2ab201f94b4b9b3d41d93238f73cc73f Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Thu, 23 Aug 2018 23:10:30 -0500 Subject: [PATCH] change response format. --- BotSharp.RestApi/Rasa/ParseController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BotSharp.RestApi/Rasa/ParseController.cs b/BotSharp.RestApi/Rasa/ParseController.cs index d556a61d..14294a5b 100644 --- a/BotSharp.RestApi/Rasa/ParseController.cs +++ b/BotSharp.RestApi/Rasa/ParseController.cs @@ -36,7 +36,7 @@ namespace BotSharp.RestApi.Rasa /// /// [HttpPost, HttpGet] - public ActionResult> Parse() + public ActionResult Parse() { var config = new AIConfiguration("", SupportedLanguage.English); config.SessionId = "rasa nlu"; @@ -83,7 +83,7 @@ namespace BotSharp.RestApi.Rasa IntentRanking = new List { } }; - return new List { rasaResponse }; + return rasaResponse; } } #endif