Skip to content

Commit

Permalink
Add the possibility to delete a model (bug 1908939)
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman committed Jul 21, 2024
1 parent d0b580e commit b759470
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/firefoxcom.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ class MLManager {
return !!(await this.#enabled?.get(name));
}

deleteModel(service) {
return FirefoxCom.requestAsync("mlDelete", service);
}

guess(data) {
return FirefoxCom.requestAsync("mlGuess", data);
}
Expand Down
4 changes: 4 additions & 0 deletions web/genericcom.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class MLManager {
return false;
}

async deleteModel(_service) {
return null;
}

async guess() {
return null;
}
Expand Down

0 comments on commit b759470

Please sign in to comment.