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",
|
"aiTemperature",
|
||||||
"aiSystemPrompt",
|
"aiSystemPrompt",
|
||||||
// Embedding options
|
// Embedding options
|
||||||
"embeddingAutoUpdate",
|
|
||||||
"embeddingAutoUpdateEnabled",
|
"embeddingAutoUpdateEnabled",
|
||||||
"embeddingBatchSize",
|
"embeddingBatchSize",
|
||||||
"embeddingUpdateInterval",
|
"embeddingUpdateInterval",
|
||||||
|
@ -70,10 +70,10 @@ class IndexService {
|
|||||||
const shouldProcessEmbeddings = embeddingLocation === 'client' || isSyncServer;
|
const shouldProcessEmbeddings = embeddingLocation === 'client' || isSyncServer;
|
||||||
|
|
||||||
// Setup automatic indexing if enabled and this instance should process embeddings
|
// 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();
|
this.setupAutomaticIndexing();
|
||||||
log.info(`Index service: Automatic indexing enabled, processing embeddings ${isSyncServer ? 'as sync server' : 'as client'}`);
|
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");
|
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;
|
const shouldProcessEmbeddings = embeddingLocation === 'client' || isSyncServer;
|
||||||
|
|
||||||
// Update automatic indexing setting
|
// Update automatic indexing setting
|
||||||
const autoIndexing = await options.getOptionBool('embeddingAutoUpdate');
|
const autoIndexing = await options.getOptionBool('embeddingAutoUpdateEnabled');
|
||||||
if (autoIndexing && shouldProcessEmbeddings && !this.automaticIndexingInterval) {
|
if (autoIndexing && shouldProcessEmbeddings && !this.automaticIndexingInterval) {
|
||||||
this.setupAutomaticIndexing();
|
this.setupAutomaticIndexing();
|
||||||
log.info(`Index service: Automatic indexing enabled, processing embeddings ${isSyncServer ? 'as sync server' : 'as client'}`);
|
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;
|
embeddingUpdateInterval: number;
|
||||||
embeddingBatchSize: number;
|
embeddingBatchSize: number;
|
||||||
embeddingDefaultDimension: number;
|
embeddingDefaultDimension: number;
|
||||||
embeddingAutoUpdate: boolean;
|
|
||||||
embeddingsDefaultProvider: string;
|
embeddingsDefaultProvider: string;
|
||||||
enableAutomaticIndexing: boolean;
|
enableAutomaticIndexing: boolean;
|
||||||
embeddingSimilarityThreshold: string;
|
embeddingSimilarityThreshold: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user