Skip to content

Commit 4d46117

Browse files
authored
fix(docs): Node.js AI SDK: modelConfig --> config in readme (#765)
**Requirements** - [ ] I have added test coverage for new or changed functionality - [ ] I have followed the repository's [pull request submission guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests) - [ ] I have validated my changes against all supported platform versions **Related issues** https://launchdarkly.atlassian.net/browse/DOCS-1126 **Describe the solution you've provided** Updated README to match current usage (`config` not `modelConfig`) **Describe alternatives you've considered** n/a **Additional context** Noticed by an LD engineer. Per offline conversation, updating PR title to trigger a release for this, so that our npm page updates as well.
1 parent aa31ec0 commit 4d46117

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/sdk/server-ai/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
## Quick Setup
2323

24-
This assumes that you have already installed the LaunchDarkly Node.js SDK, or a compatible edge
25-
SDK.
24+
This assumes that you have already installed the LaunchDarkly Node.js (server-side) SDK, or a compatible edge SDK.
2625

2726
1. Install this package with `npm` or `yarn`:
2827

@@ -40,7 +39,7 @@ const aiClient = initAi(ldClient);
4039
3. Evaluate a model configuration:
4140

4241
```typescript
43-
const config = await aiClient.modelConfig(
42+
const config = await aiClient.config(
4443
aiConfigKey!,
4544
context,
4645
{ enabled: false },

0 commit comments

Comments
 (0)