Skip to content

Commit 1665a43

Browse files
committed
align variable name with readme
1 parent 0cb15f2 commit 1665a43

File tree

1 file changed

+2
-8
lines changed
  • packages/sdk/server-ai/examples/judge-evaluation/src

1 file changed

+2
-8
lines changed

packages/sdk/server-ai/examples/judge-evaluation/src/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function main(): Promise<void> {
4646
};
4747

4848
const chat = await aiClient.createChat(aiConfigKey, context, defaultValue, {
49-
company_name: 'LaunchDarkly',
49+
companyName: 'LaunchDarkly',
5050
});
5151

5252
if (!chat) {
@@ -68,13 +68,7 @@ async function main(): Promise<void> {
6868

6969
// Example of using the judge functionality with direct input and output
7070
// Get AI judge configuration from LaunchDarkly
71-
const judge = await aiClient.createJudge(
72-
judgeKey,
73-
context,
74-
{ enabled: false },
75-
undefined,
76-
'langchain',
77-
);
71+
const judge = await aiClient.createJudge(judgeKey, context, { enabled: false });
7872

7973
if (!judge) {
8074
console.log('*** AI judge configuration is not enabled');

0 commit comments

Comments
 (0)