From 7174c8e1ece9684fe69771a220a618c4ecf76780 Mon Sep 17 00:00:00 2001 From: Steven Ickman Date: Fri, 10 May 2019 14:04:56 -0700 Subject: [PATCH] Fixed build break --- libraries/botbuilder-ai/src/luisRecognizer.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/botbuilder-ai/src/luisRecognizer.ts b/libraries/botbuilder-ai/src/luisRecognizer.ts index 77bd4c355e..8cc243f21c 100644 --- a/libraries/botbuilder-ai/src/luisRecognizer.ts +++ b/libraries/botbuilder-ai/src/luisRecognizer.ts @@ -197,9 +197,12 @@ export class LuisRecognizer implements LuisRecognizerTelemetryClient { this.includeApiResults = !!includeApiResults; // Create client + // - We have to cast "creds as any" to avoid a build break relating to different versions + // of autorest being used by our various components. This is just a build issue and + // shouldn't effect production bots. const creds: msRest.TokenCredentials = new msRest.TokenCredentials(this.application.endpointKey); const baseUri: string = this.application.endpoint || 'https://westus.api.cognitive.microsoft.com'; - this.luisClient = new LuisClient(creds, baseUri); + this.luisClient = new LuisClient(creds as any, baseUri); this._telemetryClient = this.options.telemetryClient || new NullTelemetryClient(); this._logPersonalInformation = this.options.logPersonalInformation || false;