Merge pull request #18472 from calixteman/bug1908939

Add the possibility to delete a model (bug 1908939)
This commit is contained in:
calixteman 2024-07-21 20:53:08 +02:00 committed by GitHub
commit 998bc07375
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -320,6 +320,10 @@ class MLManager {
return !!(await this.#enabled?.get(name)); return !!(await this.#enabled?.get(name));
} }
deleteModel(service) {
return FirefoxCom.requestAsync("mlDelete", service);
}
guess(data) { guess(data) {
return FirefoxCom.requestAsync("mlGuess", data); return FirefoxCom.requestAsync("mlGuess", data);
} }

View File

@ -52,6 +52,10 @@ class MLManager {
return false; return false;
} }
async deleteModel(_service) {
return null;
}
async guess() { async guess() {
return null; return null;
} }