mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-18 17:31:53 +08:00
I think sessions are finally decoupled
This commit is contained in:
parent
5e1fc5625d
commit
c1ea9e376a
@ -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: 2000
|
||||
|
@ -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/undefined
|
||||
noteId: session.noteContext ?? undefined,
|
||||
showThinking: showThinking,
|
||||
options: pipelineOptions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user