aboutsummaryrefslogtreecommitdiff
path: root/apps/docs/ai-sdk/user-profiles.mdx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/docs/ai-sdk/user-profiles.mdx')
-rw-r--r--apps/docs/ai-sdk/user-profiles.mdx10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/docs/ai-sdk/user-profiles.mdx b/apps/docs/ai-sdk/user-profiles.mdx
index ce8f5398..68ba819a 100644
--- a/apps/docs/ai-sdk/user-profiles.mdx
+++ b/apps/docs/ai-sdk/user-profiles.mdx
@@ -45,6 +45,16 @@ The `withSupermemory` middleware:
All of this happens transparently - you write code as if using a normal model, but get personalized responses.
+<Note>
+ **Memory saving is disabled by default.** The middleware only retrieves existing memories. To automatically save new memories from conversations, set `addMemory: "always"`:
+
+ ```typescript
+ const model = withSupermemory(openai("gpt-5"), "user-123", {
+ addMemory: "always"
+ })
+ ```
+</Note>
+
## Memory Search Modes
Configure how the middleware retrieves and uses memory: