Vectors WebLLM (#3631)

* Add WebLLM support for vectorization

* Load models when WebLLM extension installed

* Consistency updated

* Move checkWebLlm to initEngine

* Refactor vector request handling to use getAdditionalArgs

* Add error handling for unsupported WebLLM extension

* Add prefix to error causes
This commit is contained in:
Cohee
2025-03-09 00:51:44 +02:00
committed by GitHub
parent 0ea64050ff
commit 1cb9287684
5 changed files with 227 additions and 10 deletions

View File

@ -1070,7 +1070,7 @@ export async function installExtension(url, global) {
toastr.success(t`Extension '${response.display_name}' by ${response.author} (version ${response.version}) has been installed successfully!`, t`Extension installation successful`);
console.debug(`Extension "${response.display_name}" has been installed successfully at ${response.extensionPath}`);
await loadExtensionSettings({}, false, false);
await eventSource.emit(event_types.EXTENSION_SETTINGS_LOADED);
await eventSource.emit(event_types.EXTENSION_SETTINGS_LOADED, response);
}
/**