Skip to content

Commit 4be19fa

Browse files
committed
make method static
1 parent 9329790 commit 4be19fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class LDAIClientImpl implements LDAIClient {
6969
return Mustache.render(template, variables, undefined, { escape: (item: any) => item });
7070
}
7171

72-
private _toLDFlagValue(defaultValue: LDAIDefaults | LDAIAgentDefaults): {
72+
private static _toLDFlagValue(defaultValue: LDAIDefaults | LDAIAgentDefaults): {
7373
_ldMeta: { enabled: boolean };
7474
model?: LDModelConfig;
7575
messages?: LDMessage[];
@@ -91,7 +91,8 @@ export class LDAIClientImpl implements LDAIClient {
9191
defaultValue: LDAIDefaults,
9292
): Promise<EvaluationResult> {
9393
// Convert default value to LDFlagValue format
94-
const ldFlagValue = this._toLDFlagValue(defaultValue);
94+
// eslint-disable-next-line no-underscore-dangle
95+
const ldFlagValue = LDAIClientImpl._toLDFlagValue(defaultValue);
9596

9697
const value: VariationContent = await this._ldClient.variation(key, context, ldFlagValue);
9798

0 commit comments

Comments
 (0)