embedding worker fix
All checks were successful
Publish Library / Build NPM Project (push) Successful in 28s
Publish Library / Tag Version (push) Successful in 5s

This commit is contained in:
2026-02-12 20:18:56 -05:00
parent 5bd41f8c6a
commit 8f89f5e3cf
3 changed files with 4 additions and 4 deletions

View File

@@ -271,7 +271,7 @@ class LLM {
worker.on('exit', (code) => {
if(code !== 0) reject(new Error(`Worker exited with code ${code}`));
});
worker.postMessage({text, model: this.ai.options?.embedder || 'bge-small-en-v1.5', path: this.ai.options.path});
worker.postMessage({text, model: this.ai.options?.embedder || 'bge-small-en-v1.5', modelDir: this.ai.options.path});
});
};
const chunks = this.chunk(target, maxTokens, overlapTokens);