fix: add missing install packages for AI chat example in Convex docs

This commit is contained in:
Vorflux AI 2026-05-09 17:06:21 +00:00
parent 393aef1b2e
commit 9fd9c4cec4

View file

@ -84,6 +84,12 @@ export const searchMemories = action({
A chat endpoint using the Supermemory AI SDK middleware. It automatically injects context and saves memories.
Install the additional packages needed for this example:
```bash
npm install ai @ai-sdk/openai @supermemory/tools
```
```typescript
// convex/chat.ts
import { action } from "./_generated/server";