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

requesty/setup

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

Requesty provider package installation

The Requesty provider is available in the @requesty/ai-sdk module and can be installed using npm or other package managers.

Requesty API key environment variable

The Requesty API key should be set as an environment variable named REQUESTY_API_KEY for security purposes. The key can be obtained from the Requesty Dashboard at https://app.requesty.ai/api-keys.

Requesty default provider instance import

The default provider instance 'requesty' can be imported from @requesty/ai-sdk using: import { requesty } from '@requesty/ai-sdk';

Requesty custom provider instance creation

A custom provider instance can be created using createRequesty function: import { createRequesty } from '@requesty/ai-sdk'; const customRequesty = createRequesty({ apiKey: 'YOU••••••EY' });

Requesty generateText example

Example using Requesty with generateText: import { requesty } from '@requesty/ai-sdk'; import { generateText } from 'ai'; const { text } = await generateText({ model: requesty('openai/gpt-4o'), prompt: 'Write a vegetarian lasagna recipe for 4 people.' }); console.log(text);

Requesty streamText example

Example using Requesty with streamText: import { requesty } from '@requesty/ai-sdk'; import { streamText } from 'ai'; const result = streamText({ model: requesty('anthropic/claude-3.5-sonnet'), prompt: 'Write a short story about AI.' }); for await (const chunk of result.textStream) { console.log(chunk); }

Give your agent this brain