microsoft / Cognitive-LUIS-Node.js

Node.js (JavaScript) SDK for the Microsoft Language Understanding Intelligent Service API, part of Congitive Services
Other
72 stars 40 forks source link

Added functionality to dynamically change applications #16

Open dmccrevan opened 6 years ago

dmccrevan commented 6 years ago

I added a function changeConfig so that users could easily change the luis's configuration if the application is using multiple luis's workspaces.

Sample usage:

var LUISclient = LUISClient({
  appId: APPID,
  appKey: APPKEY,
  verbose: true
});

var newConfig = {
  appId: newAPPID,
  appKey: newAPPKEY,
  verbose: false
};

LUISclient.changeConfig(newConfig);

Update: In my second commit, I changed my code to more fit the way previously used to initialize the LUISClient

msftclas commented 6 years ago

CLA assistant check
All CLA requirements met.

dmccrevan commented 6 years ago

@Ahmkel Could this be merged in?