mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-09 22:31:10 +00:00
fix: chat id
This commit is contained in:
parent
727f177953
commit
971f203bf0
1 changed files with 7 additions and 0 deletions
|
|
@ -177,6 +177,13 @@ export function ChatSidebar({
|
|||
transport: new DefaultChatTransport({
|
||||
api: `${process.env.NEXT_PUBLIC_BACKEND_URL}/chat/v2`,
|
||||
credentials: "include",
|
||||
body: {
|
||||
metadata: {
|
||||
chatId: currentChatId,
|
||||
projectId: selectedProject,
|
||||
model: selectedModel,
|
||||
},
|
||||
},
|
||||
}),
|
||||
onFinish: async (result) => {
|
||||
if (result.message.role !== "assistant") return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue