We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37b54e7 commit 4bf4c02Copy full SHA for 4bf4c02
packages/sdk/server-ai/examples/openai/src/index.ts
@@ -53,6 +53,7 @@ async function main(): Promise<void> {
53
model: {
54
name: 'gpt-4',
55
},
56
+ enabled: false,
57
58
{ myVariable: 'My User Defined Variable' },
59
);
packages/sdk/server-ai/examples/vercel-ai/src/index.ts
@@ -39,7 +39,10 @@ async function main() {
39
const aiClient = initAi(client);
40
41
// Get AI configuration from LaunchDarkly
42
- const aiConfig = await aiClient.config(aiConfigKey, context, { model: { name: 'gpt-4' } });
+ const aiConfig = await aiClient.config(aiConfigKey, context, {
43
+ model: { name: 'gpt-4' },
44
45
+ });
46
47
if (!aiConfig.enabled) {
48
console.log('*** AI configuration is not enabled');
0 commit comments