mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
fix autoupdate name inconsistency
This commit is contained in:
parent
ab3c6b6fb1
commit
cc85b9a8f6
@ -95,7 +95,6 @@ const ALLOWED_OPTIONS = new Set([
|
||||
"aiTemperature",
|
||||
"aiSystemPrompt",
|
||||
// Embedding options
|
||||
"embeddingAutoUpdate",
|
||||
"embeddingAutoUpdateEnabled",
|
||||
"embeddingBatchSize",
|
||||
"embeddingUpdateInterval",
|
||||
|
@ -70,10 +70,10 @@ class IndexService {
|
||||
const shouldProcessEmbeddings = embeddingLocation === 'client' || isSyncServer;
|
||||
|
||||
// Setup automatic indexing if enabled and this instance should process embeddings
|
||||
if (await options.getOptionBool('embeddingAutoUpdate') && shouldProcessEmbeddings) {
|
||||
if (await options.getOptionBool('embeddingAutoUpdateEnabled') && shouldProcessEmbeddings) {
|
||||
this.setupAutomaticIndexing();
|
||||
log.info(`Index service: Automatic indexing enabled, processing embeddings ${isSyncServer ? 'as sync server' : 'as client'}`);
|
||||
} else if (await options.getOptionBool('embeddingAutoUpdate')) {
|
||||
} else if (await options.getOptionBool('embeddingAutoUpdateEnabled')) {
|
||||
log.info("Index service: Automatic indexing enabled, but this instance is not configured to process embeddings");
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@ class IndexService {
|
||||
const shouldProcessEmbeddings = embeddingLocation === 'client' || isSyncServer;
|
||||
|
||||
// Update automatic indexing setting
|
||||
const autoIndexing = await options.getOptionBool('embeddingAutoUpdate');
|
||||
const autoIndexing = await options.getOptionBool('embeddingAutoUpdateEnabled');
|
||||
if (autoIndexing && shouldProcessEmbeddings && !this.automaticIndexingInterval) {
|
||||
this.setupAutomaticIndexing();
|
||||
log.info(`Index service: Automatic indexing enabled, processing embeddings ${isSyncServer ? 'as sync server' : 'as client'}`);
|
||||
|
@ -67,7 +67,6 @@ export interface OptionDefinitions extends KeyboardShortcutsOptions<KeyboardActi
|
||||
embeddingUpdateInterval: number;
|
||||
embeddingBatchSize: number;
|
||||
embeddingDefaultDimension: number;
|
||||
embeddingAutoUpdate: boolean;
|
||||
embeddingsDefaultProvider: string;
|
||||
enableAutomaticIndexing: boolean;
|
||||
embeddingSimilarityThreshold: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user