We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d802e3 commit f540bbdCopy full SHA for f540bbd
packages/botonic-plugin-nlu/src/index.js
@@ -3,7 +3,7 @@ import { NLU } from './nlu'
3
export default class BotonicPluginNLU {
4
constructor(options) {
5
let languages = Object.keys(options)
6
- ;(async () => {
+ return (async () => {
7
this.nlu = await new NLU(languages)
8
return this
9
})()
packages/botonic-plugin-nlu/src/nlu.js
@@ -11,7 +11,7 @@ global.fetch = fetch
11
12
export class NLU {
13
constructor(languages) {
14
15
this.env = await resolveEnv()
16
this.languages = []
17
this.models = {}
0 commit comments