Skip to content

Vercel AI Provider v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:56
Immutable release. Only release title and notes can be modified.
f6736cd

Vercel AI Provider v0.2.0

Add persistent memory to Vercel AI SDK applications with automatic context injection and storage.

Installation

npm install @cortexmemory/vercel-ai-provider @cortexmemory/sdk ai convex

Quick Start

import { createCortexMemory } from '@cortexmemory/vercel-ai-provider';
import { openai } from '@ai-sdk/openai';
import { streamText } from 'ai';

const cortexMemory = createCortexMemory({
  convexUrl: process.env.CONVEX_URL!,
  memorySpaceId: 'my-chatbot',
  userId: 'user-123'
});

const result = await streamText({
  model: cortexMemory(openai('gpt-5-nano')),
  messages
});

Documentation