@smythos/sre 1.5.72 → 1.5.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class.ts
CHANGED
|
@@ -47,7 +47,7 @@ export class JSONModelsProvider extends ModelsProviderConnector {
|
|
|
47
47
|
|
|
48
48
|
this.models = JSON.parse(JSON.stringify(models));
|
|
49
49
|
if (typeof this._settings.models === 'string') {
|
|
50
|
-
this.initDirWatcher(this._settings.models);
|
|
50
|
+
this.initDirWatcher(this._settings.models); //this.started will be set to true when the watcher is ready
|
|
51
51
|
} else if (typeof this._settings.models === 'object') {
|
|
52
52
|
if (this._settings.mode === 'merge') this.models = { ...this.models, ...(this._settings.models as TLLMModelsList) };
|
|
53
53
|
else this.models = this._settings.models as TLLMModelsList;
|
|
@@ -55,9 +55,9 @@ export class JSONModelsProvider extends ModelsProviderConnector {
|
|
|
55
55
|
} else {
|
|
56
56
|
const modelsFolder = this.findModelsFolder();
|
|
57
57
|
if (modelsFolder) {
|
|
58
|
-
this.
|
|
58
|
+
this._settings.mode === 'merge'; //Force merge mode if using models from .smyth folder
|
|
59
|
+
this.initDirWatcher(modelsFolder); //this.started will be set to true when the watcher is ready
|
|
59
60
|
}
|
|
60
|
-
this.started = true;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
public async start() {
|