supermemory/packages
sohamd22 91a2aa5fdb create memory adding option in vercel sdk (#484)
### TL;DR

Added support for automatically saving user messages to Supermemory.

### What changed?

- Added a new `addMemory` option to `wrapVercelLanguageModel` that accepts either "always" or "never" (defaults to "never")
- Implemented the `addMemoryTool` function to save user messages to Supermemory
- Modified the middleware to check the `addMemory` setting and save the last user message when appropriate
- Initialized the Supermemory client in the middleware to enable memory storage

### How to test?

1. Set the `SUPERMEMORY_API_KEY` environment variable
2. Use the `wrapVercelLanguageModel` function with the new `addMemory: "always"` option
3. Send a user message through the model
4. Verify that the message is saved to Supermemory with the specified container tag

### Why make this change?

This change enables automatic memory creation from user messages, which improves the system's ability to build a knowledge base without requiring explicit memory creation calls. This is particularly useful for applications that want to automatically capture and store user interactions for future reference.
2025-10-11 03:45:06 +00:00
..
ai-sdk fix: model names 2025-10-03 02:41:49 -07:00
hooks UI: onboarding improvements (#435) 2025-10-01 21:59:53 +00:00
lib feat(raycast-extension): initial version of supermemory extension for raycast (#440) 2025-10-02 16:22:56 +00:00
openai-sdk-python fix: openai python sdk package export (#432) 2025-10-08 15:54:42 -07:00
tools create memory adding option in vercel sdk (#484) 2025-10-11 03:45:06 +00:00
ui feat: multiple models & ui improvements (#455) 2025-10-06 16:25:38 +00:00
validation Enhanced Text Editor and format fixes with biome (#371) 2025-08-21 08:40:44 -07:00