Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(server): check one-shot slot filling case causing infinite loop
  • Loading branch information
louistiti committed Jun 5, 2022
1 parent 6cfbabf commit 782a3aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/core/nlu.js
Expand Up @@ -423,7 +423,7 @@ class Nlu {
}

// In case all slots have been filled in the first utterance
if (this.conv.hasActiveContext()) {
if (this.conv.hasActiveContext() && Object.keys(this.conv.activeContext.slots).length > 0) {
return resolve(await this.handleSlotFilling(utterance, opts))
}

Expand Down
2 changes: 1 addition & 1 deletion skills/games/rochambeau/nlu/en.json
Expand Up @@ -70,7 +70,7 @@
"point_for_player": [
"You got me. The %handsign_1% beats the %handsign_2%.",
"Aargh no. The %handsign_1% beats the %handsign_2%.",
"Well play! The %handsign_1% beats the %handsign_2%."
"Well played! The %handsign_1% beats the %handsign_2%."
],
"win": [
"I won! Would you like a rematch?"
Expand Down

0 comments on commit 782a3aa

Please sign in to comment.