Skip to content

Commit

Permalink
Merge pull request #105 from Oceania2018/master
Browse files Browse the repository at this point in the history
Add model name to request query
  • Loading branch information
paschmann committed Aug 24, 2018
2 parents 537c0d8 + 84a1487 commit 6eb7a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/routes/mw_routes/nlu_router.js
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,
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 6eb7a02

Please sign in to comment.