fix: chat id

This commit is contained in:
Dhravya Shah 2026-02-12 16:18:01 -08:00
parent 727f177953
commit 971f203bf0

View file

@ -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