Skip to content

Commit 0b9f894

Browse files
committed
rename var to improve clarity
1 parent cd534e3 commit 0b9f894

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/sdk/server-ai/src/LDAIClientImpl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,15 @@ export class LDAIClientImpl implements LDAIClient {
237237
// Track chat initialization
238238
this._ldClient.track('$ld:ai:config:function:initChat', context, key, 1);
239239

240-
const config = await this.config(key, context, defaultValue, variables);
240+
const aiConfig = await this.config(key, context, defaultValue, variables);
241241

242242
// Return undefined if the configuration is disabled
243-
if (!config.enabled) {
243+
if (!aiConfig.enabled) {
244244
this._logger?.info(`Chat configuration is disabled: ${key}`);
245245
return undefined;
246246
}
247247

248248
// Create the TrackedChat instance based on the provider
249-
return TrackedChatFactory.create(config, config.tracker, this._logger);
249+
return TrackedChatFactory.create(aiConfig, aiConfig.tracker, this._logger);
250250
}
251251
}

0 commit comments

Comments
 (0)