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

This commit is contained in:
2023-09-01 12:46:23 +02:00
parent e1a9b951d8
commit b2aa2df72b
3 changed files with 22 additions and 19 deletions
-5
View File
@@ -78,8 +78,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)}")