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

neon/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.

Neon AI Gateway package and requirements

The Neon provider is available in the @neon/ai-sdk-provider package. It requires Node.js 22 or later and is installed alongside AI SDK 7.

Neon AI Gateway environment variables

The Neon provider requires two environment variables: NEON_AI_GATEWAY_BASE_URL (in the format https://<branch-id>-api.ai.<cell>.us-east-2.aws.neon.tech) and NEON_AI_GATEWAY_TOKEN (starting with nt_live_). The base URL should be the bare branch gateway URL without an API path, as the provider adds the path for each model.

Neon provider instance creation

Import the default neon provider with 'import { neon } from "@neon/ai-sdk-provider";' which reads NEON_AI_GATEWAY_BASE_URL and NEON_AI_GATEWAY_TOKEN from environment. Alternatively, use createNeon() to pass baseURL and apiKey explicitly, which also accepts custom headers and fetch implementation.

Neon AI Gateway beta requirements

Neon AI Gateway is in beta. It requires a paid Neon plan and a project in the AWS US East (Ohio) region (aws-us-east-2). Inference is free during the beta.

Neon branch-scoped authentication

A credential works on the branch where it was created and on branches descended from it. For example, preview branches forked from main can use a credential created on main. An unrelated branch cannot. Model requests follow the same branch isolation as the database.

Give your agent this brain