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

nearai/capabilities

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.

NEAR AI Cloud generateText example

Example of using NEAR AI Cloud with generateText function: ```ts import { createOpenAICompatible } from '@ai-sdk/openai-compatible'; import { generateText } from 'ai'; const nearai = createOpenAICompatible({ name: 'nearai', baseURL: 'https://cloud-api.near.ai/v1', apiKey: process.env.NEARAI_API_KEY, transformRequestBody: body => { const { reasoning_effort, ...rest } = body; return rest; }, }); const { text } = await generateText({ model: nearai('zai-org/GLM-5.1-FP8'), prompt: 'Tell me about yourself in one sentence.', }); console.log(text); ```

NEAR AI Cloud streamText example

Example of using NEAR AI Cloud with streamText function for streaming text generation: ```ts import { createOpenAICompatible } from '@ai-sdk/openai-compatible'; import { streamText } from 'ai'; const nearai = createOpenAICompatible({ name: 'nearai', baseURL: 'https://cloud-api.near.ai/v1', apiKey: process.env.NEARAI_API_KEY, transformRequestBody: body => { const { reasoning_effort, ...rest } = body; return rest; }, }); const result = streamText({ model: nearai('zai-org/GLM-5.1-FP8'), prompt: 'Write a short haiku about private inference.', }); for await (const message of result.textStream) { console.log(message); } ```

NEAR AI Cloud TEE-backed inference

NEAR AI Cloud provides TEE-backed inference through an OpenAI-compatible API.

Give your agent this brain