Skip to content

Build your personal knowledge base with Trilium Notes

fix(llm): well this has been using the wrong value the whole time

perf3ct0ce5307c0bb6
diff --git a/apps/server/src/routes/api/llm.ts b/apps/server/src/routes/api/llm.ts
index 658b44c930..d9dda5d7a4 100644
--- a/apps/server/src/routes/api/llm.ts
+++ b/apps/server/src/routes/api/llm.ts
@@ -188,7 +188,7 @@ async function getSession(req: Request, res: Response) {
*/
async function updateSession(req: Request, res: Response) {
// Get the chat using chatStorageService directly
- const chatNoteId = req.params.chatNoteId;
+ const chatNoteId = req.params.sessionId;
const updates = req.body;
try {