Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Updated RASA NLU API call to comply with the new URL and input syntax of Rasa NLU v1.0 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ module.exports = config => {
debug('Sending message to Rasa', message.text)
const options = {
method: 'POST',
uri: `${config.rasa_uri}/parse`,
uri: `${config.rasa_uri}/model/parse`,
body: {
q: message.text
text: message.text
},
json: true
}
Expand Down