new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

zhipu/setup

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Zhipu AI provider package name

The Zhipu AI community provider package is called 'zhipu-ai-provider'.

Zhipu API key environment variable

The Zhipu provider reads the API key from the environment variable ZHIPU_API_KEY.

Zhipu default import

The default provider instance 'zhipu' can be imported directly from 'zhipu-ai-provider' and automatically reads the API key from the ZHIPU_API_KEY environment variable.

Zhipu custom provider instance creation

You can create a custom Zhipu provider instance using createZhipu() function. This is useful for using the non-Chinese Z.AI infrastructure with baseURL 'https://api.z.ai/api/paas/v4'.

Zhipu generateText usage example

import { zhipu } from 'zhipu-ai-provider'; const { text } = await generateText({ model: zhipu('glm-4-plus'), prompt: 'Why is the sky blue?', }); console.log(result);

Give your agent this brain