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 · Cookbook · all subjects

multi-modal/setup

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

Multi-modal agent prerequisites

To build a multi-modal agent with the AI SDK, you need: Node.js 22 or later, pnpm package manager, and a Vercel AI Gateway API key obtained by signing up on the Vercel website.

Install AI SDK packages for multi-modal agent

Install the packages 'ai' and '@ai-sdk/react' using pnpm: pnpm add ai @ai-sdk/react. The 'ai' package is the core AI SDK, and '@ai-sdk/react' provides React-specific utilities.

Vercel AI Gateway API key configuration

Store the Vercel AI Gateway API key in a .env.local file at the project root with the variable name AI_GATEWAY_API_KEY. The AI SDK's Vercel AI Gateway Provider is the default global provider, allowing models to be accessed using a simple string in the model configuration.

Give your agent this brain