cmm: the 'tags' command now uses the new 'ChatDB'

This commit is contained in:
2023-09-01 12:46:23 +02:00
committed by Oleksandr Kozachuk
parent e1414835c8
commit 8923a13352
3 changed files with 22 additions and 19 deletions
-5
View File
@@ -79,8 +79,3 @@ def print_chat_hist(chat: ChatType, dump: bool = False, source_code: bool = Fals
print(message['content'])
else:
print(f"{message['role'].upper()}: {message['content']}")
def print_tags_frequency(tags: list[str]) -> None:
for tag in sorted(set(tags)):
print(f"- {tag}: {tags.count(tag)}")