Implemented the 'question --repeat' command and other improvements #14

Merged
juk0de merged 9 commits from repeat into main 2023-09-21 07:25:50 +02:00
Collaborator

This pull request contains several improvements and fixes to the Chatmastermind project. The main purpose was to implement the cmm question --repeat command, which allows users to repeat the latest question. However, several other changes were made to improve functionality and maintainability.

Major changes include:

  • Added the repeat command in the question_cmd function. This allows for repeating the latest question.
  • Extracted the make_request function in the question.py file, which is used to make an AI request and print the response. This increases modularity and allows the same functionality to be used in multiple places.
  • In print_cmd function, added the functionality to print the latest message if no file is specified.
  • Improved configurability by allowing specification of the cache directory in the configuration file, rather than hardcoding it.
  • Added clearer metavar for arguments in the main.py file to provide a better understanding of what each argument represents.
  • Added __post_init__ and equals methods in the Message class, allowing for better type handling and comparison of messages.
This pull request contains several improvements and fixes to the Chatmastermind project. The main purpose was to implement the `cmm question --repeat` command, which allows users to repeat the latest question. However, several other changes were made to improve functionality and maintainability. Major changes include: - Added the `repeat` command in the `question_cmd` function. This allows for repeating the latest question. - Extracted the `make_request` function in the `question.py` file, which is used to make an AI request and print the response. This increases modularity and allows the same functionality to be used in multiple places. - In `print_cmd` function, added the functionality to print the latest message if no file is specified. - Improved configurability by allowing specification of the cache directory in the configuration file, rather than hardcoding it. - Added clearer `metavar` for arguments in the `main.py` file to provide a better understanding of what each argument represents. - Added `__post_init__` and `equals` methods in the `Message` class, allowing for better type handling and comparison of messages.
juk0de added 9 commits 2023-09-20 10:07:31 +02:00
juk0de added the enhancement label 2023-09-20 10:08:15 +02:00
juk0de force-pushed repeat from 3f8cb47a2a to 061e4a0d90 2023-09-20 10:10:27 +02:00 Compare
juk0de self-assigned this 2023-09-20 10:11:46 +02:00
juk0de force-pushed repeat from 061e4a0d90 to ac3c19739d 2023-09-20 10:18:54 +02:00 Compare
juk0de merged commit 4538624247 into main 2023-09-21 07:25:50 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kaizenkodo/ChatMastermind#14