[KongchangAI]
Productai-sdk/zai / zai provider

@ai-sdk/zai

An official provider package within the Vercel AI SDK ecosystem for integrating Zhipu (Z.ai) models. Built on the @ai-sdk/openai-compatible compatibility layer, it supports connectivity with Zhipu's GLM series of language models.

Core Facts

Timeline (last 90 days)

Nov 26

Upgrading to @ai-sdk/zai@1.0.14 is a low-risk operation, and the main benefit is obtaining stability improvements in the underlying dependencies

Unverified50%
Nov 26

The upgrade of @ai-sdk/zai from 1.0.13 to 1.0.14 only involves the patch position, the API interface remains unchanged, and existing code requires no adjustment

Unverified50%
Nov 25

Version 3.0.58 was triggered by commit aa7cb79.

Unverified50%
Nov 25

The coexistence of different major version numbers (e.g., provider-utils 5.x, openai-compatible and zai 3.x) is the normal result of independent version evolution and does not indicate incompatibility.

Unverified50%
Nov 25

@ai-sdk/zai is an adapter layer for a specific model provider; it is only responsible for bridging a given vendor's differences (endpoint, authentication, model name mapping) to the compatibility layer, and its own code volume is very small.

Unverified50%
Nov 25

@ai-sdk/zai is a provider package for the ZAI service in the Vercel AI SDK ecosystem, built on the OpenAI-compatible layer.

Unverified50%
Nov 25

In projects with stricter dependency locking, it is advisable to run an integration test after upgrading to confirm that the Zai model's call chain is not indirectly affected.

Unverified50%
Nov 20

@ai-sdk/zai@3.0.57 was released on the 20th by the github-actions bot, containing only 1 commit, with commit hash 3dad57f.

Unverified50%
Nov 20

The number of Assets listed on the @ai-sdk/zai@3.0.57 release page is 3.

Unverified50%
Nov 20

@ai-sdk/zai itself does not directly implement inference logic, but wraps Z.ai's interface into the AI SDK's unified provider form.

Unverified50%

40 more timeline events

All Facts (20)

Verified

In a dependency chain, patch versions can still introduce behavioral changes through upgraded transitive dependencies, so it is recommended to run the test suite even for patch updates.

90%
Verified

@ai-sdk/zai, as the Provider implementation for Z.ai, reuses the communication and protocol handling logic of the OpenAI compatibility layer at its foundation.

90%
Verified

@ai-sdk/zai is built on the @ai-sdk/openai-compatible compatibility layer and only requires configuring Zhipu-specific endpoint addresses and parameters.

90%
Verified

The main changes in @ai-sdk/togetherai@3.0.51 are focused on dependency upgrades and contain no breaking changes.

90%
Verified

This update upgrades the dependency ai to 7.0.102 and @ai-sdk/provider-utils to 5.0.41.

90%
Verified

@ai-sdk/vue is the adapter layer for the Vercel AI SDK within the Vue ecosystem.

90%
Verified

The core change in @ai-sdk/tui@1.0.100 is an update to dependencies, with the associated commit being 615ac89.

90%
Verified

A patch version update (1.0.104 → 1.0.105) signifies backward-compatible bug fixes or dependency updates, without introducing breaking changes.

90%
Verified

This release record was completed by a GitHub Actions automated workflow and carries an official GitHub verified signature (Verified).

90%
Verified

When upgrading @ai-sdk/voyage, it is recommended to simultaneously update @ai-sdk/provider and @ai-sdk/provider-utils to ensure dependency tree version alignment

90%
Verified

The upgrade method is to run npm install @ai-sdk/openai@4.0.60.

90%
Verified

@ai-sdk/zai depends on @ai-sdk/openai-compatible, indicating that Zhipu GLM's API interface is largely compatible with OpenAI's calling conventions.

90%
Verified

You can upgrade via the command npm install @ai-sdk/zai@1.0.3 or yarn add @ai-sdk/zai@1.0.3.

90%
Verified

@ai-sdk/zai is the official Provider in the Vercel AI SDK for Zhipu AI models.

90%
Verified

@ai-sdk/zai@3.0.8 introduces no breaking changes and no new features.

90%
Verified

@ai-sdk/zai@3.0.8 synchronously updated upstream dependencies: @ai-sdk/provider@4.0.12, @ai-sdk/openai-compatible@3.0.46, and @ai-sdk/provider-utils@5.0.38.

90%
Verified

Z.ai's API design is itself compatible with the OpenAI format.

85%
Verified

The zai provider depends on @ai-sdk/openai-compatible, indicating it is most likely built on top of an OpenAI-compatible interface.

85%
Verified

Upgrading from 3.0.44 to 3.0.45 is a safe and low-risk operation, because a Patch version implies backward-compatible bug fixes.

85%
Verified

From a SemVer versioning semantics perspective, 2.0.5 is a patch-level update, theoretically backward-compatible, and carries extremely low upgrade risk.

80%

Source Articles