Commit Graph

  • eb0d97ddc8 cmm: the 'tags' command now uses the new 'ChatDB' juk0de 2023-09-01 12:46:23 +02:00
  • 7e25a08d6e chat: added functions for finding and deleting messages juk0de 2023-09-06 08:16:55 +02:00
  • 63040b3688 message / chat: output improvements juk0de 2023-09-04 08:49:43 +02:00
  • 6e2d5009c1 chat: new possibilites for adding messages and better tests juk0de 2023-09-03 10:18:16 +02:00
  • 44cd1fab45 message: added rename_tags() function and test juk0de 2023-09-02 10:19:14 +02:00
  • 4b0f40bccd message: fixed Answer header for TXT format juk0de 2023-09-02 10:00:08 +02:00
  • fa292fb73a message: improved robustness of Question and Answer content checks and tests juk0de 2023-09-01 16:00:24 +02:00
  • f9d749cdd8 chat: added clear_cache() function and test juk0de 2023-09-02 09:19:47 +02:00
  • ba56caf013 chat: improved history printing juk0de 2023-09-02 08:18:41 +02:00
  • d80c3962bd chat: fixed handling of unsupported files in DB and chache dir juk0de 2023-09-01 12:44:27 +02:00
  • ddfe29b951 chat: added tags_frequency() function and test juk0de 2023-09-01 12:35:32 +02:00
  • d93598a74f configuration: added AIConfig class juk0de 2023-09-01 09:07:58 +02:00
  • 7f612bfc17 added tokens() function to Message and Chat juk0de 2023-09-01 08:57:54 +02:00
  • 93290da5b5 added tests for 'chat.py' juk0de 2023-08-28 14:24:24 +02:00
  • 9f4897a5b8 added new module 'chat.py' juk0de 2023-08-24 16:49:54 +02:00
  • 214a6919db tags: some clarification and new tests juk0de 2023-08-31 15:47:29 +02:00
  • b83cbb719b added 'message_in()' function and test juk0de 2023-08-31 09:19:38 +02:00
  • 8e1cdee3bf fixed Message.filter_tags juk0de 2023-08-30 08:20:25 +02:00
  • 73d2a9ea3b fixed test case file cleanup juk0de 2023-08-29 11:35:18 +02:00
  • 169f1bb458 fixed handling empty tags in TXT file juk0de 2023-08-27 18:07:38 +02:00
  • 7f91a2b567 Added tags filtering (prefix and contained string) to TagLine and Message juk0de 2023-08-26 12:50:47 +02:00
  • fc1b8006a0 tests: added testcases for Message.from/to_file() and others juk0de 2023-08-20 19:59:38 +02:00
  • aa89270876 tests: splitted 'test_main.py' into 3 modules juk0de 2023-08-20 08:46:03 +02:00
  • 0d6a6dd604 gitignore: added vim session file juk0de 2023-08-21 08:29:48 +02:00
  • 580c86e948 tags: TagLine constructor now supports multiline taglines and multiple spaces juk0de 2023-08-19 08:30:24 +02:00
  • 879831d7f5 configuration: added 'as_dict()' as an instance function juk0de 2023-08-19 08:04:41 +02:00
  • dfc1261931 added testcases for messages.py juk0de 2023-08-18 16:08:22 +02:00
  • 173a46a9b5 added new module 'message.py' juk0de 2023-08-18 16:07:50 +02:00
  • 604e5ccf73 tags.py: converted most TagLine functions to module functions juk0de 2023-08-18 12:11:56 +02:00
  • ef46f5efc9 added testcases for Tag and TagLine classes juk0de 2023-08-17 08:28:15 +02:00
  • b13a68836a added new module 'tags.py' with classes 'Tag' and 'TagLine' juk0de 2023-08-16 17:07:01 +02:00
  • a5c91adc41 configuration: minor improvements / fixes juk0de 2023-08-16 23:22:20 +02:00
  • 380b7c1b67 Python 3.9 compatibility. #4 Oleksandr Kozachuk 2023-08-16 12:24:03 +02:00
  • e8343fde01 test_main: added type annotations and a helper class / function juk0de 2023-08-16 11:15:14 +02:00
  • ee8deed320 configuration: added validation juk0de 2023-08-16 08:39:15 +02:00
  • dc13213c4d configuration is now a TypedDict in its own module juk0de 2023-08-16 08:14:41 +02:00
  • 4303fb414f added typ hints for all functions in 'main.py', 'utils.py', 'storage.py' and 'api_client.py' juk0de 2023-08-15 23:36:45 +02:00
  • ba41794f4e mypy: added 'disallow_untyped_defs = True' juk0de 2023-08-15 09:47:58 +02:00
  • a5075b14a0 added short aliases for subcommands juk0de 2023-08-13 08:41:59 +02:00
  • e8eba0b755 Merge pull request 'Using subcommands instead of arguments' (#2) from subcommands into main ok 2023-08-12 21:37:05 +02:00
  • 1e15a52e26 updated README and some minor renaming #2 juk0de 2023-08-12 18:34:19 +02:00
  • c4a7c07a0c fixed tests juk0de 2023-08-12 14:14:51 +02:00
  • 22bebc16ed fixed min nr of expected arguments juk0de 2023-08-12 14:14:06 +02:00
  • f7ba0c000f renamed 'model' command to 'config' juk0de 2023-08-12 14:12:35 +02:00
  • b6eb7d9af8 Fix autocompletion. Oleksandr Kozachuk 2023-08-12 13:57:52 +02:00
  • f371a6146e moved 'read_config' to storage.py and added 'write_config' juk0de 2023-08-12 13:55:39 +02:00
  • 6ed459be6f Fix tests. Oleksandr Kozachuk 2023-08-12 13:17:10 +02:00
  • 1fb9144192 Change REDAME.md with the new call semantics. Oleksandr Kozachuk 2023-08-12 12:44:13 +02:00
  • 4b2f634b79 Remove wrong comment and make it more readable. Oleksandr Kozachuk 2023-08-12 12:30:07 +02:00
  • e4d055b900 Fix the max_tokens, temperature, and model setup. Oleksandr Kozachuk 2023-08-12 12:20:49 +02:00
  • bc5e6228a6 defined 'ConfigType' for configuration file type hinting juk0de 2023-08-12 10:21:09 +02:00
  • 056bf4c6b5 fixed almost all tests juk0de 2023-08-12 09:51:13 +02:00
  • 93a8b0081a main: cleanup juk0de 2023-08-12 09:50:54 +02:00
  • 5119b3a874 fixed 'ask' command juk0de 2023-08-12 08:28:07 +02:00
  • 5a435c5f8f fixed 'tag' and 'hist' commands juk0de 2023-08-12 08:20:00 +02:00
  • f90e7bcd47 fixed 'hist' command and simplified reading the config file juk0de 2023-08-12 08:13:31 +02:00
  • 6406d2f5b5 started to implement sub-commands juk0de 2023-08-11 18:12:49 +02:00
  • df91ca863a Fix the supported python version in README.md and set it to 3.9, also add some classifiers. ok 2023-08-11 11:03:04 +02:00
  • bc9baff0dc Add official repository URL. ok 2023-08-10 11:29:54 +02:00
  • 7a92ebe539 README: Added 'Contributing' section juk0de 2023-08-10 08:26:27 +02:00
  • 9b6b13993c Output the tag list sorted alphabetically. ok 2023-08-05 23:07:39 +02:00
  • c5c4a6628f Allow character ":" in tags. ok 2023-08-05 21:00:30 +02:00
  • f8ed0e3636 tags are now separated by ' ' (old format is still readable) juk0de 2023-08-05 17:45:43 +02:00
  • caf5244d52 Add action -L to list all available models ok 2023-08-05 16:04:25 +02:00
  • ca3a53e68b Fix backwards compatibility of -W flag. ok 2023-08-05 15:35:27 +02:00
  • 820d938060 Fix tests for Python 3.10. ok 2023-08-05 14:42:38 +02:00
  • 8bb2a002a6 Fixed tests. ok 2023-08-05 13:21:17 +02:00
  • 01de75bef3 Improve -l output. ok 2023-08-05 12:39:46 +02:00
  • 1bb553b223 Merge branch 'main' of stage.fjerkroa.no:ok/ChatMastermind ok 2023-08-05 12:36:13 +02:00
  • bb8aa2f817 Fix read_file declaration. ok 2023-08-05 12:36:04 +02:00
  • 0d31b88567 Merge pull request 'Changes from https://github.com/juk0de/ChatMastermind.git' (#2) from juk into main ok 2023-08-05 12:30:24 +02:00
  • b234bc25ea Changes from https://github.com/juk0de/ChatMastermind.git ok 2023-08-05 12:24:53 +02:00
  • a5d527bc01 Remove app for now. ok 2023-08-05 12:22:05 +02:00
  • 9dde163a3c Temporary stuff. ok 2023-08-05 12:21:30 +02:00
  • 8e4a02b932 added option '-a' to match all tags when selecting chat history entries juk0de 2023-08-05 11:41:36 +02:00
  • 5d55bed0ec added option '-l' to list all tags and their frequency juk0de 2023-08-05 11:16:06 +02:00
  • 32bd17594b Added option '-W' to print chat history with filenames juk0de 2023-08-05 08:09:35 +02:00
  • b57d78a875 added option '-w' to print chat history with tags juk0de 2023-08-04 18:15:04 +02:00
  • bcfb41917a Add App. Oleksandr Kozachuk 2023-06-26 17:53:16 +02:00
  • 648d7b35cc Merge branch 'main' of fstage:ok/ChatMastermind Oleksandr Kozachuk 2023-05-08 13:59:42 +02:00
  • 6ae0e7d084 Improve handling of printing source code only output. ok 2023-05-07 16:32:24 +02:00
  • e0fac306cb Change default number of answers to 1 ok 2023-05-07 15:01:48 +02:00
  • 63a202376d Optimize tags retrival in TXT files. ok 2023-05-07 14:43:56 +02:00
  • c5fd466dda Change storage to use text format per default, instead of yaml, but still support yaml. Oleksandr Kozachuk 2023-05-07 14:31:17 +02:00
  • 57caba5360 Ignore noweb for now. Oleksandr Kozachuk 2023-05-07 14:02:19 +02:00
  • df2f5e01a5 Fix handling of -q and -s, add pre-commit checks. Oleksandr Kozachuk 2023-04-19 15:28:19 +02:00
  • ad10af8f4f Improve source code extraction Oleksandr Kozachuk 2023-04-08 11:32:29 +02:00
  • eed180e7a6 Add possibility to print just the source code Oleksandr Kozachuk 2023-04-07 23:42:26 +02:00
  • 16f059920b Name files with autogenerated numbers Oleksandr Kozachuk 2023-04-07 21:55:47 +02:00
  • 4375b6aafd Small change Oleksandr Kozachuk 2023-04-07 18:02:36 +02:00
  • eb1aec6d42 Add db to .gitignore Oleksandr Kozachuk 2023-04-07 17:59:46 +02:00
  • 1dd9adbba2 Remove initial db directory. Oleksandr Kozachuk 2023-04-07 17:58:58 +02:00
  • 4ee777118d Refactor process_tags Oleksandr Kozachuk 2023-04-07 17:56:02 +02:00
  • b23a9f663f Splain main.py to several files. Oleksandr Kozachuk 2023-04-07 17:40:24 +02:00
  • 0470109434 Rename the script to cmm and fix installation Oleksandr Kozachuk 2023-04-07 15:42:24 +02:00
  • a9dbf87a76 Initial commit of the code. Oleksandr Kozachuk 2023-04-07 15:14:34 +02:00
  • f98acf167d Initial commit Kiyomichi Kosaka 2023-04-07 14:02:46 +02:00