Implement the config -l and config -m commands.

This commit is contained in:
Oleksandr Kozachuk
2023-09-12 16:34:17 +02:00
parent 2b62cb8c4b
commit f96e82bdd7
3 changed files with 16 additions and 0 deletions
+6
View File
@@ -59,6 +59,12 @@ class AI(Protocol):
"""
raise NotImplementedError
def print_models(self) -> None:
"""
Print all models supported by this AI.
"""
raise NotImplementedError
def tokens(self, data: Union[Message, Chat]) -> int:
"""
Computes the nr. of AI language tokens for the given message