mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 10:54:29 +08:00
fix chat_service imports
This commit is contained in:
parent
466b749298
commit
d5efcfe0a9
@ -168,10 +168,10 @@ export class ChatService {
|
||||
|
||||
if (useSmartContext && lastUserMessage) {
|
||||
// Use smart context that considers the query for better relevance
|
||||
context = await contextExtractor.getSmartContext(noteId, lastUserMessage);
|
||||
context = await aiServiceManager.getContextExtractor().getSmartContext(noteId, lastUserMessage);
|
||||
} else {
|
||||
// Fall back to full context if smart context is disabled or no query available
|
||||
context = await contextExtractor.getFullContext(noteId);
|
||||
context = await aiServiceManager.getContextExtractor().getFullContext(noteId);
|
||||
}
|
||||
|
||||
const contextMessage: Message = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user