Implemented the new '.msg' suffix for Message files and a conversion command #16

Merged
ok merged 16 commits from msg_suffix into main 2023-10-07 12:41:53 +02:00
Collaborator
  • Implemented new message file suffix .msg that is used when writing message files.
  • The .txt and .yaml suffixes are still supported for reading existing message files.
  • The msg_write method (and others) now accepts an optional mformat parameter to specify the format of the message files to be written.
  • Added ChatDB.set_msg_format() for changing the message format for all ChatDB messages.
  • Added unit tests for the hist command in test_hist_cmd.py
  • New option hist --convert <FORMAT> to convert existing message files to a different format (and the .msg suffix).
  • New option hist --print for printing the DB chat history.
  • New option hist --print --with-metadata that replaces --with-tags and --with-file (and also prints AI and model)
  • New option hist --print --no-paging to disable paged output.
  • Re-added message separators when printing chat history
    • Can be disabled with --tight.
* Implemented new message file suffix `.msg` that is used when writing message files. * The `.txt` and `.yaml` suffixes are still supported for reading existing message files. * The `msg_write` method (and others) now accepts an optional `mformat` parameter to specify the format of the message files to be written. * Added `ChatDB.set_msg_format()` for changing the message format for all ChatDB messages. * Added unit tests for the `hist` command in `test_hist_cmd.py` * New option `hist --convert <FORMAT>` to convert existing message files to a different format (and the `.msg` suffix). * New option `hist --print` for printing the DB chat history. * New option `hist --print --with-metadata` that replaces `--with-tags` and `--with-file` (and also prints `AI` and `model`) * New option `hist --print --no-paging` to disable paged output. * Re-added message separators when printing chat history * Can be disabled with `--tight`.
juk0de added 13 commits 2023-09-30 10:27:04 +02:00
juk0de added the enhancement label 2023-09-30 10:27:11 +02:00
juk0de self-assigned this 2023-09-30 10:27:16 +02:00
juk0de requested review from ok 2023-09-30 10:46:58 +02:00
juk0de added 2 commits 2023-10-01 10:11:32 +02:00
juk0de added 1 commit 2023-10-01 10:22:40 +02:00
juk0de requested review from Owners 2023-10-01 10:27:13 +02:00
juk0de force-pushed msg_suffix from 75823e7db8 to f961ed7475 2023-10-02 08:33:56 +02:00 Compare
juk0de force-pushed msg_suffix from f961ed7475 to 3ea1f49027 2023-10-02 08:35:40 +02:00 Compare
ok merged commit 3ea1f49027 into main 2023-10-07 12:41:53 +02:00
ok deleted branch msg_suffix 2023-10-07 12:41:53 +02:00
Sign in to join this conversation.
No Reviewers
kaizenkodo/Owners
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kaizenkodo/ChatMastermind#16