diff options
| author | Dhravya Shah <[email protected]> | 2025-10-03 02:37:30 -0700 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2025-10-03 02:37:30 -0700 |
| commit | c65f4e97ac1a41272da2cc59ec1e2d6a88efbd70 (patch) | |
| tree | 66f2a7cc36da315ce82fb30fc1f1408d69409133 /apps/docs/cookbook | |
| parent | fix: tools files (diff) | |
| download | supermemory-c65f4e97ac1a41272da2cc59ec1e2d6a88efbd70.tar.xz supermemory-c65f4e97ac1a41272da2cc59ec1e2d6a88efbd70.zip | |
fix: docs
Diffstat (limited to 'apps/docs/cookbook')
| -rw-r--r-- | apps/docs/cookbook/ai-sdk-integration.mdx | 14 | ||||
| -rw-r--r-- | apps/docs/cookbook/personal-assistant.mdx | 4 |
2 files changed, 4 insertions, 14 deletions
diff --git a/apps/docs/cookbook/ai-sdk-integration.mdx b/apps/docs/cookbook/ai-sdk-integration.mdx index 1bf217af..9bde2f42 100644 --- a/apps/docs/cookbook/ai-sdk-integration.mdx +++ b/apps/docs/cookbook/ai-sdk-integration.mdx @@ -100,10 +100,7 @@ export async function POST(request: Request) { model: openai('gpt-4-turbo'), messages, tools: supermemoryTools(process.env.SUPERMEMORY_API_KEY!, { - headers: { - 'x-sm-user-id': customerId, - 'x-sm-conversation-id': 'customer-support' - } + containerTags: [customerId] }), system: `You are a customer support agent. Before responding to any query: 1. Search for the customer's previous interactions and issues @@ -192,10 +189,7 @@ export async function POST(request: Request) { model: anthropic('claude-3-haiku-20240307'), messages, tools: supermemoryTools(process.env.SUPERMEMORY_API_KEY!, { - headers: { - 'x-sm-user-id': userId, - 'x-sm-conversation-id': `course-${courseId}` - } + containerTags: [userId] }), system: `You are a learning assistant. Help students with their coursework by: 1. Remembering their learning progress and struggles @@ -230,9 +224,7 @@ export async function POST(request: Request) { model: openai('gpt-4-turbo'), messages, tools: supermemoryTools(process.env.SUPERMEMORY_API_KEY!, { - headers: { - 'x-sm-conversation-id': projectId - } + containerTags: [projectId] }), system: `You are a research assistant. You can: 1. Search through uploaded research papers and documents diff --git a/apps/docs/cookbook/personal-assistant.mdx b/apps/docs/cookbook/personal-assistant.mdx index edaeed83..db999100 100644 --- a/apps/docs/cookbook/personal-assistant.mdx +++ b/apps/docs/cookbook/personal-assistant.mdx @@ -627,9 +627,7 @@ Check that memories are being stored properly: ```typescript // Always use user-specific container tags const tools = supermemoryTools(apiKey, { - headers: { - 'x-sm-user-id': userId - } + containerTags: [userId] }) ``` |