change response format.

This commit is contained in:
Oceania2018 2018-08-23 23:10:30 -05:00
parent 465e3b97e8
commit d3fd87cc2a

View file

@ -36,7 +36,7 @@ namespace BotSharp.RestApi.Rasa
/// <param name="request"></param>
/// <returns></returns>
[HttpPost, HttpGet]
public ActionResult<List<RasaResponse>> Parse()
public ActionResult<RasaResponse> Parse()
{
var config = new AIConfiguration("", SupportedLanguage.English);
config.SessionId = "rasa nlu";
@ -83,7 +83,7 @@ namespace BotSharp.RestApi.Rasa
IntentRanking = new List<RasaResponseIntent> { }
};
return new List<RasaResponse> { rasaResponse };
return rasaResponse;
}
}
#endif