@ai-sdk/svelte
The official adapter package for the Vercel AI SDK targeting the Svelte framework. It wraps the AI SDK's streaming state as Svelte stores or reactive variables, enabling rapid integration of AI capabilities such as chat and text completion into Svelte applications.
Core Facts
@ai-sdk/vue is the adapter layer for the Vercel AI SDK within the Vue ecosystem.
The Vercel AI SDK core package ai is currently at major version 5.x, while the adapter package @ai-sdk/svelte remains at 3.x.
@ai-sdk/vue is the official adapter package for the Vue ecosystem within the Vercel AI SDK monorepo.
Timeline (last 90 days)
After upgrading @ai-sdk/svelte, it is recommended to run the existing integration tests, especially the parts involving streaming responses and state management, to confirm that upstream core package changes have not affected the reactive update behavior on the Svelte side.
The version number of the AI SDK's Svelte adapter package is not synchronized with the core ai package's 7.x; the former evolves independently.
@ai-sdk/vue released patch version 4.0.154.
Utility functions such as useChat provided by @ai-sdk/svelte essentially wrap streaming message state into a subscribable reactive object and handle connection cleanup when the component unmounts, reducing boilerplate for handwritten event listeners and state synchronization.
After upgrading @ai-sdk/vue, check whether ai has been bumped as well, and if necessary explicitly install ai@7.0.151 or delete the lockfile and re-resolve.
@ai-sdk/xai@5.0.27 has no breaking changes, so upgrade risk is very low.
For framework binding libraries, the changes brought by Svelte 5 runes involve not only internal implementation but also the externally exposed API design, such as how to return streamingly generated tokens in a reactive way.
Since the last release, the main branch has accumulated 2873 commits.
This release page does not list the specific code change details, and only notes the associated ai@6.0.306.
For patch versions, the prudent approach is to pay attention to the update notes of the core ai package, first upgrade in the development environment to confirm the critical path is normal, and keep a rollback plan before upgrading the production environment.
40 more timeline events
All Facts (20)
@ai-sdk/vue is the adapter layer for the Vercel AI SDK within the Vue ecosystem.
90%VerifiedThe Vercel AI SDK core package ai is currently at major version 5.x, while the adapter package @ai-sdk/svelte remains at 3.x.
90%Verified@ai-sdk/vue is the official adapter package for the Vue ecosystem within the Vercel AI SDK monorepo.
90%VerifiedThe core change in @ai-sdk/tui@1.0.100 is an update to dependencies, with the associated commit being 615ac89.
90%VerifiedThis release record was completed by a GitHub Actions automated workflow and carries an official GitHub verified signature (Verified).
90%Verified@ai-sdk/svelte@4.0.276 depends on the ai@6.0.276 core package.
90%VerifieduseChat is designed for multi-turn conversation scenarios and maintains a message history list, while useCompletion is suited for single-pass text completion scenarios; both expose an error state field.
90%VerifiedVercel AI SDK uses the changesets tool to manage version changes, and each patch to the core ai package is automatically propagated to all adapter layers such as @ai-sdk/svelte, @ai-sdk/react, and @ai-sdk/vue.
90%VerifiedWhen using @ai-sdk/svelte, users should ensure that the versions of ai and @ai-sdk/svelte are aligned, avoiding mixing different major versions.
90%Verified@ai-sdk/svelte is an adapter layer for the Svelte framework that encapsulates the streaming responses, message management, tool-calling, and other capabilities of the core ai package into interfaces conforming to Svelte's reactive paradigm.
90%VerifiedPatch versions typically do not introduce breaking changes and are primarily used for bug fixes, performance optimizations, or syncing underlying dependencies, in compliance with Semantic Versioning (SemVer) specifications.
90%VerifiedThe Vercel AI SDK adopts a Monorepo single-repository management model, with the core package ai and various framework adapter packages (such as @ai-sdk/vue, @ai-sdk/react, and @ai-sdk/svelte) released in coordination.
90%VerifiedAI SDK's framework adapter packages keep their patch version numbers aligned with the core package (for example, ai@7.0.140 corresponds to @ai-sdk/svelte@5.0.140).
80%VerifiedWithin the AI SDK ecosystem, there exists an adapter package @ai-sdk/zod similar to @ai-sdk/valibot, with both providing the same public interface.
80%Verified@ai-sdk/xai@3.0.134 was automatically built by GitHub Actions.
80%VerifiedThis update upgrades the dependency ai to 7.0.102 and @ai-sdk/provider-utils to 5.0.41.
80%Verified@ai-sdk/svelte remaining at version 5.x while the core ai package has reached version 7.x reflects the strategy of each sub-package adopting independent version numbers.
80%VerifiedWhen upgrading, you should confirm whether the ai core package version in the project needs to be simultaneously upgraded to 7.0.94 to avoid runtime errors caused by version mismatches.
80%VerifiedWhen a foundational package such as @ai-sdk/provider-utils that is depended upon by multiple packages is updated, Changeset automatically marks the packages that depend on it for a patch version bump, which is why @ai-sdk/valibot publishes a new version even though its own code has not changed.
75%VerifiedThe ai main package version is 6.0.292 while the adapter package is 4.0.292, with different major versions, indicating that each sub-package maintains its version line independently.
75%