Skip to content

Commit 13bd7c6

Browse files
authored
Merge pull request #1 from supermemoryai/10-19-add_conversation_id_functionality
add conversation id functionality
2 parents 63b73cd + e78e657 commit 13bd7c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/(chat)/api/chat/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export async function POST(request: Request) {
147147
// Wrap the language model with supermemory
148148
const baseModel = myProvider(session.user.id).languageModel(selectedChatModel);
149149
const modelWithMemory = withSupermemory(baseModel, containerTag, {
150+
conversationId: id,
150151
mode: "full",
151152
verbose: true,
152153
addMemory: "always"

0 commit comments

Comments
 (0)