mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add UI plugin for vectors
This commit is contained in:
@@ -12,14 +12,14 @@ class EmbeddingModel {
|
||||
/**
|
||||
* @type {encoder.UniversalSentenceEncoder} - The embedding model
|
||||
*/
|
||||
#model;
|
||||
model;
|
||||
|
||||
async get() {
|
||||
if (!this.#model) {
|
||||
if (!this.model) {
|
||||
this.model = await encoder.load();
|
||||
}
|
||||
|
||||
return this.#model;
|
||||
return this.model;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user