diff --git a/packages/sdk/server-ai/src/LDAIClientImpl.ts b/packages/sdk/server-ai/src/LDAIClientImpl.ts index 7677e460a..dd0dead9d 100644 --- a/packages/sdk/server-ai/src/LDAIClientImpl.ts +++ b/packages/sdk/server-ai/src/LDAIClientImpl.ts @@ -11,7 +11,7 @@ import { LDClientMin } from './LDClientMin'; * Metadata assorted with a model configuration variation. */ interface LDMeta { - versionId: string; + versionKey: string; enabled: boolean; } @@ -58,7 +58,7 @@ export class LDAIClientImpl implements LDAIClient { this._ldClient, key, // eslint-disable-next-line no-underscore-dangle - value._ldMeta?.versionId ?? '', + value._ldMeta?.versionKey ?? '', context, ), // eslint-disable-next-line no-underscore-dangle diff --git a/packages/sdk/server-ai/src/LDAIConfigTrackerImpl.ts b/packages/sdk/server-ai/src/LDAIConfigTrackerImpl.ts index 6401c5b9c..763d5bf11 100644 --- a/packages/sdk/server-ai/src/LDAIConfigTrackerImpl.ts +++ b/packages/sdk/server-ai/src/LDAIConfigTrackerImpl.ts @@ -9,13 +9,13 @@ export class LDAIConfigTrackerImpl implements LDAIConfigTracker { constructor( private _ldClient: LDClientMin, private _configKey: string, - private _versionId: string, + private _versionKey: string, private _context: LDContext, ) {} - private _getTrackData(): { versionId: string; configKey: string } { + private _getTrackData(): { versionKey: string; configKey: string } { return { - versionId: this._versionId, + versionKey: this._versionKey, configKey: this._configKey, }; }