diff options
| author | MaheshtheDev <[email protected]> | 2025-10-27 20:08:11 +0000 |
|---|---|---|
| committer | MaheshtheDev <[email protected]> | 2025-10-27 20:08:11 +0000 |
| commit | b3aab91489af0adb2e16215a02c20bc83259b42f (patch) | |
| tree | b36622bb273c09b9e6dd4542388630453bf2463e /packages/tools/test/chatapp/package.json | |
| parent | feat: more clarity on the connectors sync (#523) (diff) | |
| download | supermemory-b3aab91489af0adb2e16215a02c20bc83259b42f.tar.xz supermemory-b3aab91489af0adb2e16215a02c20bc83259b42f.zip | |
feat: withSupermemory for openai sdk (#531)
### 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
Diffstat (limited to 'packages/tools/test/chatapp/package.json')
| -rw-r--r-- | packages/tools/test/chatapp/package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/tools/test/chatapp/package.json b/packages/tools/test/chatapp/package.json index 746ca050..2649035d 100644 --- a/packages/tools/test/chatapp/package.json +++ b/packages/tools/test/chatapp/package.json @@ -14,6 +14,7 @@ "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:*" }, |