Commit Graph

98 Commits

Author SHA1 Message Date
juk0de
481f9ecf7c configuration: improved config file format 2023-09-11 13:09:45 +02:00
juk0de
22fa187e5f question_cmd: when no tags are specified, no tags are selected 2023-09-11 13:09:45 +02:00
juk0de
b840ebd792 message: to_file() now uses intermediate temporary file 2023-09-11 13:09:45 +02:00
juk0de
66908f5fed message: fixed matching with empty tag sets 2023-09-11 13:09:45 +02:00
juk0de
2e08ccf606 openai: stores AI.ID instead of AI.name in message 2023-09-11 13:09:44 +02:00
juk0de
595ff8e294 question_cmd: added message filtering by tags 2023-09-11 13:09:44 +02:00
juk0de
faac42d3c2 question_cmd: fixed '--ask' command 2023-09-11 13:09:44 +02:00
juk0de
864ab7aeb1 chat: added check for existing files when creating new filenames 2023-09-11 13:09:44 +02:00
juk0de
cc76da2ab3 chat: added 'update_messages()' function and test 2023-09-11 13:09:44 +02:00
juk0de
f99cd3ed41 question_cmd: fixed source code extraction and added a testcase 2023-09-11 13:09:44 +02:00
6f3ea98425 Small fixes. 2023-09-11 13:09:44 +02:00
54ece6efeb Port print arguments -q/-a/-S from main to restructuring. 2023-09-11 13:09:44 +02:00
86eebc39ea Allow in question -s for just sourcing file and -S to source file with ``` encapsulation. 2023-09-11 13:09:44 +02:00
juk0de
c4f7bcc94e question_cmd: fixes 2023-09-11 13:09:44 +02:00
juk0de
c52713c833 configuration: added tests 2023-09-11 13:09:44 +02:00
juk0de
ecb6994783 configuration et al: implemented new Config format 2023-09-11 13:09:44 +02:00
juk0de
61e710a4b1 cmm: splitted commands into separate modules (and more cleanup) 2023-09-11 13:09:41 +02:00
juk0de
21d39c6c66 cmm: removed all the old code and modules 2023-09-11 13:08:45 +02:00
juk0de
6a4cc7a65d setup: added 'ais' subfolder 2023-09-11 13:07:46 +02:00
juk0de
034e4093f1 cmm: added 'question' command 2023-09-11 13:07:46 +02:00
juk0de
7d15452242 added new module 'ai_factory' 2023-09-11 13:07:46 +02:00
juk0de
823d3bf7dc added new module 'openai.py' 2023-09-11 13:07:46 +02:00
juk0de
4bd144c4d7 added new module 'ai.py' 2023-09-11 13:07:46 +02:00
juk0de
e186afbef0 cmm: the 'print' command now uses 'Message.from_file()' 2023-09-11 13:07:43 +02:00
juk0de
5e4ec70072 cmm: tags completion now uses 'Message.tags_from_dir' (fixes tag completion for me) 2023-09-11 13:06:22 +02:00
juk0de
4c378dde85 cmm: the 'hist' command now uses the new 'ChatDB' 2023-09-11 13:05:33 +02:00
juk0de
8923a13352 cmm: the 'tags' command now uses the new 'ChatDB' 2023-09-11 13:04:08 +02:00
juk0de
e1414835c8 chat: added functions for finding and deleting messages 2023-09-11 13:04:08 +02:00
juk0de
abb7fdacb6 message / chat: output improvements 2023-09-11 13:04:08 +02:00
juk0de
2e2228bd60 chat: new possibilites for adding messages and better tests 2023-09-11 13:04:08 +02:00
juk0de
713b55482a message: added rename_tags() function and test 2023-09-11 13:04:08 +02:00
juk0de
d35de86c67 message: fixed Answer header for TXT format 2023-09-11 13:04:08 +02:00
juk0de
aba3eb783d message: improved robustness of Question and Answer content checks and tests 2023-09-11 13:04:08 +02:00
juk0de
8e63831701 chat: added clear_cache() function and test 2023-09-11 13:04:08 +02:00
juk0de
c318b99671 chat: improved history printing 2023-09-11 13:04:08 +02:00
juk0de
48c8e951e1 chat: fixed handling of unsupported files in DB and chache dir 2023-09-11 13:04:08 +02:00
juk0de
b22a4b07ed chat: added tags_frequency() function and test 2023-09-11 13:04:08 +02:00
juk0de
33565d351d configuration: added AIConfig class 2023-09-11 13:04:08 +02:00
juk0de
6737fa98c7 added tokens() function to Message and Chat 2023-09-11 13:04:08 +02:00
juk0de
64893949a4 added new module 'chat.py' 2023-09-11 13:04:08 +02:00
juk0de
a093f9b867 tags: some clarification and new tests 2023-09-11 13:04:08 +02:00
juk0de
dc3f3dc168 added 'message_in()' function and test 2023-09-11 13:04:08 +02:00
juk0de
74c39070d6 fixed Message.filter_tags 2023-09-11 13:04:08 +02:00
juk0de
238dbbee60 fixed handling empty tags in TXT file 2023-09-11 13:04:08 +02:00
juk0de
17f7b2fb45 Added tags filtering (prefix and contained string) to TagLine and Message 2023-09-11 13:04:08 +02:00
juk0de
30ccec2462 tags: TagLine constructor now supports multiline taglines and multiple spaces 2023-09-11 13:04:08 +02:00
juk0de
09da312657 configuration: added 'as_dict()' as an instance function 2023-09-11 13:04:08 +02:00
juk0de
264979a60d added new module 'message.py' 2023-09-11 13:04:08 +02:00
juk0de
061e5f8682 tags.py: converted most TagLine functions to module functions 2023-09-11 13:04:08 +02:00
juk0de
8bd659e888 added new module 'tags.py' with classes 'Tag' and 'TagLine' 2023-09-11 13:04:08 +02:00