You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: remove deprecated AIProvider methods and create*/init* aliases (AIC-2388)
Now that all provider packages (#1337 OpenAI, #1338 LangChain, #1339 Vercel)
have migrated to the Runner protocol, the deprecated compatibility surface on
the umbrella `feat/next-ai-release` branch can be removed.
BREAKING CHANGE: Removes the following deprecated APIs:
AIProvider abstract base class:
- `invokeModel()` and `invokeStructuredModel()` instance methods
- `static create()` factory method
- `protected logger` field on the constructor (provider subclasses now
declare their own private `_logger` field)
LDAIClient deprecated method aliases:
- `config()` (use `completionConfig`)
- `agent()` (use `agentConfig`)
- `agents()` (use `agentConfigs`)
- `createChat()` and `initChat()` (use `createModel`)
Public types:
- `StructuredResponse` (only consumed by the removed
`invokeStructuredModel` method)
Type narrowing on `AIProvider` and `RunnerFactory`:
- `createModel(config: LDAICompletionConfig | LDAIJudgeConfig)`
- `createAgent(config: LDAIAgentConfig)`
- `createAgentGraph(graphDef: AgentGraphDefinition)`
Previously these accepted the wider `LDAIConfigKind` union; the new signatures
mirror what the provider subclasses already declared and surface mode
mismatches at the type level.
Also updates README examples to use `createModel`/`run()` and removes the
stale `_LegacyProviderAdapter` references in `RunnerFactory` doc comments.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/ai-providers/server-ai-langchain/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@
20
20
21
21
## Quick Setup
22
22
23
-
This package provides LangChain integration for the LaunchDarkly AI SDK. The simplest way to use it is with the LaunchDarkly AI SDK's `initChat` method:
23
+
This package provides LangChain integration for the LaunchDarkly AI SDK. The simplest way to use it is with the LaunchDarkly AI SDK's `createModel` method:
Copy file name to clipboardExpand all lines: packages/ai-providers/server-ai-openai/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,15 @@
23
23
24
24
## Quick Setup
25
25
26
-
This package provides OpenAI integration for the LaunchDarkly AI SDK. The simplest way to use it is with the LaunchDarkly AI SDK's `initChat` method:
26
+
This package provides OpenAI integration for the LaunchDarkly AI SDK. The simplest way to use it is with the LaunchDarkly AI SDK's `createModel` method:
Copy file name to clipboardExpand all lines: packages/ai-providers/server-ai-vercel/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@
20
20
21
21
## Quick Setup
22
22
23
-
This package provides Vercel AI SDK integration for the LaunchDarkly AI SDK. The simplest way to use it is with the LaunchDarkly AI SDK's `initChat` method:
23
+
This package provides Vercel AI SDK integration for the LaunchDarkly AI SDK. The simplest way to use it is with the LaunchDarkly AI SDK's `createModel` method:
Copy file name to clipboardExpand all lines: packages/sdk/server-ai/examples/openai-observability/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Provider-Specific Observability Example (OpenAI)
2
2
3
-
This example shows how to use the LaunchDarkly observability plugin when calling an AI provider directly — without the higher-level `createChat` abstraction. It uses OpenAI as the provider, but the same pattern applies to any provider (Bedrock, Anthropic, Vercel AI SDK, etc.).
3
+
This example shows how to use the LaunchDarkly observability plugin when calling an AI provider directly — without the higher-level `createModel` abstraction. It uses OpenAI as the provider, but the same pattern applies to any provider (Bedrock, Anthropic, Vercel AI SDK, etc.).
0 commit comments