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/ai-sdk | |
| parent | fix: tools files (diff) | |
| download | supermemory-c65f4e97ac1a41272da2cc59ec1e2d6a88efbd70.tar.xz supermemory-c65f4e97ac1a41272da2cc59ec1e2d6a88efbd70.zip | |
fix: docs
Diffstat (limited to 'apps/docs/ai-sdk')
| -rw-r--r-- | apps/docs/ai-sdk/examples.mdx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/apps/docs/ai-sdk/examples.mdx b/apps/docs/ai-sdk/examples.mdx index a0827e6c..cb2b1a7f 100644 --- a/apps/docs/ai-sdk/examples.mdx +++ b/apps/docs/ai-sdk/examples.mdx @@ -101,9 +101,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 - } + 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 +190,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 +225,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 |