Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
I think sessions are finally decoupled
perf3ctc1ea9e376a58
diff --git a/src/public/app/widgets/llm_chat/communication.ts b/src/public/app/widgets/llm_chat/communication.tsindex 70aed2ac58..bb58a47b23 100644--- a/src/public/app/widgets/llm_chat/communication.ts+++ b/src/public/app/widgets/llm_chat/communication.ts@@ -94,7 +94,8 @@ export async function setupStreamingResponse(try {const streamResponse = await server.post<any>(`llm/chat/${chatNoteId}/messages/stream`, {content: messageParams.content,- includeContext: messageParams.useAdvancedContext,+ useAdvancedContext: messageParams.useAdvancedContext,+ showThinking: messageParams.showThinking,options: {temperature: 0.7,maxTokens: 2000diff --git a/src/services/llm/chat/rest_chat_service.ts b/src/services/llm/chat/rest_chat_service.tsindex 3abce813d0..0a400ad919 100644--- a/src/services/llm/chat/rest_chat_service.ts+++ b/src/services/llm/chat/rest_chat_service.ts@@ -294,7 +294,7 @@ class RestChatService {role: msg.role as 'user' | 'assistant' | 'system',content: msg.content})),- query: content,+ query: content || '', // Ensure query is always a string, even if content is null/undefinednoteId: session.noteContext ?? undefined,showThinking: showThinking,options: pipelineOptions,