-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Add support for Vercel AIProvider to the AI SDK #946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@launchdarkly/browser size report |
@launchdarkly/js-sdk-common size report |
@launchdarkly/js-client-sdk size report |
@launchdarkly/js-client-sdk-common size report |
🤖 I have created a release *beep* *boop* --- <details><summary>server-sdk-ai: 0.12.0</summary> ## [0.12.0](server-sdk-ai-v0.11.4...server-sdk-ai-v0.12.0) (2025-10-13) ### Features * Add support for TrackedChats in the AI SDK ([#939](#939)) ([a7ad0ea](a7ad0ea)) * Add support for Vercel AIProvider to the AI SDK ([#946](#946)) ([8553f24](8553f24)) ### Bug Fixes * Rename to AIProviderFactory for more accurate naming ([#949](#949)) ([92323ec](92323ec)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Release server-sdk-ai 0.12.0 adding TrackedChats and OpenAI/LangChain/Vercel AIProviders; update manifest and example apps to new version. > > - **server-sdk-ai 0.12.0**: > - **Features**: Support `TrackedChats`; add `OpenAI`, `LangChain`, and `Vercel` AIProviders. > - **Version bumps**: > - Update `packages/sdk/server-ai/package.json` and examples (`examples/openai`, `examples/bedrock`) to `0.12.0`. > - Update `.release-please-manifest.json` entry for `packages/sdk/server-ai` to `0.12.0`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit ce739d8. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jason Bailey <[email protected]>
Note
Adds multi-provider (OpenAI, LangChain, Vercel) support with optional default provider for chat initialization and dynamic provider loading.
LDAIClient.initChat
accepts optionaldefaultAiProvider?: SupportedAIProvider
and forwards it to provider creation.SupportedAIProvider
andSUPPORTED_AI_PROVIDERS
viaapi/chat
.@launchdarkly/server-sdk-ai-openai
(OpenAIProvider
),@launchdarkly/server-sdk-ai-langchain
(LangChainProvider
),@launchdarkly/server-sdk-ai-vercel
(VercelProvider
)._tryCreateProvider
and_createProvider
helpers; adjust logging and warnings.Written by Cursor Bugbot for commit d8c8184. This will update automatically on new commits. Configure here.