refactor(BaseClient, GoogleClient): make sendCompletion required, refactor Google to use Base sendMessage (#591)

This commit is contained in:
Danny Avila 2023-07-05 14:00:12 -04:00 committed by GitHub
parent 4e317c85fd
commit 77d5fb0c58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 56 deletions

View file

@ -26,6 +26,10 @@ class BaseClient {
throw new Error("Method 'getCompletion' must be implemented.");
}
sendCompletion() {
throw new Error("Method 'sendCompletion' must be implemented.");
}
getSaveOptions() {
throw new Error('Subclasses must implement getSaveOptions');
}