Skip to content

Commit e78e657

Browse files
committed
add conversation id functionality
1 parent 63b73cd commit e78e657

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)