mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
### TL;DR Added OpenAI SDK middleware support for SuperMemory integration, allowing direct memory injection without AI SDK dependency. ### What changed? - Added `withSupermemory` middleware for OpenAI SDK that automatically injects relevant memories into chat completions - Implemented memory search and injection functionality for OpenAI clients - Restructured the OpenAI module to separate tools and middleware functionality - Updated README with comprehensive documentation and examples for the new OpenAI middleware - Added test implementation with a Next.js API route example - Reorganized package exports to support the new structure
31 lines
677 B
JSON
31 lines
677 B
JSON
{
|
|
"name": "chatapp",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint"
|
|
},
|
|
"dependencies": {
|
|
"react": "19.2.0",
|
|
"react-dom": "19.2.0",
|
|
"next": "16.0.0",
|
|
"ai": "^4.0.0",
|
|
"@ai-sdk/openai": "^1.0.0",
|
|
"openai": "^4.104.0",
|
|
"supermemory": "^1.0.0",
|
|
"@supermemory/tools": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@tailwindcss/postcss": "^4",
|
|
"tailwindcss": "^4",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.0.0"
|
|
}
|
|
}
|