mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-13 20:42: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) {
|
if (useSmartContext && lastUserMessage) {
|
||||||
// Use smart context that considers the query for better relevance
|
// Use smart context that considers the query for better relevance
|
||||||
context = await contextExtractor.getSmartContext(noteId, lastUserMessage);
|
context = await aiServiceManager.getContextExtractor().getSmartContext(noteId, lastUserMessage);
|
||||||
} else {
|
} else {
|
||||||
// Fall back to full context if smart context is disabled or no query available
|
// 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 = {
|
const contextMessage: Message = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user