Skip to content

Commit

Permalink
change query agent to model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceania2018 committed Aug 23, 2018
1 parent b373b40 commit 84a1487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/routes/mw_routes/nlu_router.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ function getRasaNluVersion(req, res, next) {

function trainRasaNlu(req, res, next) {
console.log("Rasa NLU Train Request -> " + global.rasanluendpoint + "/train?project=" + req.query.project);
logRequest(req, "train", {project: req.query.project, agent: req.query.name, data: req.body});
logRequest(req, "train", {project: req.query.project, model: req.query.name, data: req.body});

request({
method: "POST",
uri: global.rasanluendpoint + "/train?project=" + req.query.project + "&agent=" + req.query.name,
uri: global.rasanluendpoint + "/train?project=" + req.query.project + "&model=" + req.query.name,
json: req.body
}, function (error, response, body) {
if(error){
Expand Down

0 comments on commit 84a1487

Please sign in to comment.