@wasmagent/model-zhipu
v1.0.3
Published
Zhipu (GLM) model adapter for wasmagent
Readme
/model-zhipu
Zhipu GLM-5 adapter — thinking: { type } via extra_body, auto-prefix cache.
Part of wasmagent — a TypeScript + WASM agent runtime.
▽ Maintenance-mode. This adapter is functional and security-patched, but is not receiving proactive feature work — it is dominated by
GenericOpenAICompatModel+ a recipe indocs/guides/openai-compat-recipes.md. See maintenance tiers for the rationale. If you actively use this package and want it promoted to ◆ Narrative, open an issue taggedtier:promote-requestwith your use case.
Install
npm install /model-zhipu /coreUsage
import { ZhipuModel, GLMModels } from "/model-zhipu";
const model = new ZhipuModel(GLMModels.GLM_5, {
apiKey: process.env.ZHIPU_API_KEY,
});⚠️ Compliance — Review the Zhipu BigModel terms before using in production.
License
Apache-2.0 — © wasmagent contributors
