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

ollama/setup

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

Ollama provider options: two community implementations

The AI SDK supports Ollama through two community providers: nordwestt/ollama-ai-provider-v2 (direct HTTP API integration for simple text generation) and ai-sdk-ollama by jagreehal (built on official Ollama JavaScript client, recommended for advanced features).

ollama-ai-provider-v2 recommended use case

nordwestt/ollama-ai-provider-v2 provides straightforward access to Ollama models with direct HTTP API calls, making it ideal for basic text generation and getting started quickly.

ai-sdk-ollama recommended use cases

ai-sdk-ollama by jagreehal is recommended when you need reliable tool calling with guaranteed complete responses, web search capabilities using Ollama's web search API for current information, cross-environment support with automatic detection for Node.js and browsers, advanced Ollama features like mirostat, repeat_penalty, and num_ctx for fine-tuned control, and enhanced reliability with built-in error handling and retries via the official client.

ai-sdk-ollama technical foundation

ai-sdk-ollama is built on the official Ollama JavaScript client library, supports both CommonJS and ESM module formats, and provides full TypeScript support with type-safe Ollama-specific options.

ollama-ai-provider-v2 installation

Install ollama-ai-provider-v2 using npm with the package name 'ollama-ai-provider-v2'.

ai-sdk-ollama installation

Install ai-sdk-ollama using npm with the package name 'ai-sdk-ollama'.

Importing default Ollama provider instance

Import the default provider instance ollama from 'ollama-ai-provider-v2' using: import { ollama } from 'ollama-ai-provider-v2';

Creating customized Ollama provider instance

Import createOllama from 'ollama-ai-provider-v2' to create a provider instance with custom settings. Example: import { createOllama } from 'ollama-ai-provider-v2'; const ollama = createOllama({ baseURL: 'https://api.ollama.com' });

Give your agent this brain