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

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

Flowise provider package name

The Flowise provider is available in the npm package @ahmedrowaihi/flowise-vercel-ai-sdk-provider.

Flowise provider import

Import the Flowise provider factory using: import { createFlowiseProvider } from '@ahmedrowaihi/flowise-vercel-ai-sdk-provider';

Flowise environment variables

Configure Flowise with two environment variables: FLOWISE_BASE_URL (required, the URL of your Flowise instance, e.g., https://your-flowise-instance.com) and FLOWISE_API_KEY (optional).

Flowise provider instantiation

Create a Flowise provider instance by calling createFlowiseProvider with an object containing baseUrl and optional apiKey properties.

Flowise one-shot model creation

Create a one-shot Flowise model without a provider instance using createFlowiseModel with baseUrl, apiKey, and chatflowId properties.

Flowise text generation example

Example using generateText with Flowise: import { createFlowiseProvider } from '@ahmedrowaihi/flowise-vercel-ai-sdk-provider'; import { generateText } from 'ai'; const flowise = createFlowiseProvider({ baseUrl: process.env.FLOWISE_BASE_URL!, apiKey: process.env.FLOWISE_API_KEY }); const { text } = await generateText({ model: flowise('your-chatflow-id'), prompt: 'Write a vegetarian lasagna recipe for 4 people.' });

Give your agent this brain