change response format.
This commit is contained in:
parent
465e3b97e8
commit
d3fd87cc2a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue