109 Commits

Author SHA1 Message Date
6a4cc7a65d setup: added 'ais' subfolder 2023-09-11 13:07:46 +02:00
d6bb5800b1 test_main: temporarily disabled all testcases 2023-09-11 13:07:46 +02:00
034e4093f1 cmm: added 'question' command 2023-09-11 13:07:46 +02:00
7d15452242 added new module 'ai_factory' 2023-09-11 13:07:46 +02:00
823d3bf7dc added new module 'openai.py' 2023-09-11 13:07:46 +02:00
4bd144c4d7 added new module 'ai.py' 2023-09-11 13:07:46 +02:00
e186afbef0 cmm: the 'print' command now uses 'Message.from_file()' 2023-09-11 13:07:43 +02:00
5e4ec70072 cmm: tags completion now uses 'Message.tags_from_dir' (fixes tag completion for me) 2023-09-11 13:06:22 +02:00
4c378dde85 cmm: the 'hist' command now uses the new 'ChatDB' 2023-09-11 13:05:33 +02:00
8923a13352 cmm: the 'tags' command now uses the new 'ChatDB' 2023-09-11 13:04:08 +02:00
e1414835c8 chat: added functions for finding and deleting messages 2023-09-11 13:04:08 +02:00
abb7fdacb6 message / chat: output improvements 2023-09-11 13:04:08 +02:00
2e2228bd60 chat: new possibilites for adding messages and better tests 2023-09-11 13:04:08 +02:00
713b55482a message: added rename_tags() function and test 2023-09-11 13:04:08 +02:00
d35de86c67 message: fixed Answer header for TXT format 2023-09-11 13:04:08 +02:00
aba3eb783d message: improved robustness of Question and Answer content checks and tests 2023-09-11 13:04:08 +02:00
8e63831701 chat: added clear_cache() function and test 2023-09-11 13:04:08 +02:00
c318b99671 chat: improved history printing 2023-09-11 13:04:08 +02:00
48c8e951e1 chat: fixed handling of unsupported files in DB and chache dir 2023-09-11 13:04:08 +02:00
b22a4b07ed chat: added tags_frequency() function and test 2023-09-11 13:04:08 +02:00
33565d351d configuration: added AIConfig class 2023-09-11 13:04:08 +02:00
6737fa98c7 added tokens() function to Message and Chat 2023-09-11 13:04:08 +02:00
815a21893c added tests for 'chat.py' 2023-09-11 13:04:08 +02:00
64893949a4 added new module 'chat.py' 2023-09-11 13:04:08 +02:00
a093f9b867 tags: some clarification and new tests 2023-09-11 13:04:08 +02:00
dc3f3dc168 added 'message_in()' function and test 2023-09-11 13:04:08 +02:00
74c39070d6 fixed Message.filter_tags 2023-09-11 13:04:08 +02:00
fde0ae4652 fixed test case file cleanup 2023-09-11 13:04:08 +02:00
238dbbee60 fixed handling empty tags in TXT file 2023-09-11 13:04:08 +02:00
17f7b2fb45 Added tags filtering (prefix and contained string) to TagLine and Message 2023-09-11 13:04:08 +02:00
9c2598a4b8 tests: added testcases for Message.from/to_file() and others 2023-09-11 13:04:08 +02:00
acec5f1d55 tests: splitted 'test_main.py' into 3 modules 2023-09-11 13:04:08 +02:00
c0f50bace5 gitignore: added vim session file 2023-09-11 13:04:08 +02:00
30ccec2462 tags: TagLine constructor now supports multiline taglines and multiple spaces 2023-09-11 13:04:08 +02:00
09da312657 configuration: added 'as_dict()' as an instance function 2023-09-11 13:04:08 +02:00
33567df15f added testcases for messages.py 2023-09-11 13:04:08 +02:00
264979a60d added new module 'message.py' 2023-09-11 13:04:08 +02:00
061e5f8682 tags.py: converted most TagLine functions to module functions 2023-09-11 13:04:08 +02:00
2d456e68f1 added testcases for Tag and TagLine classes 2023-09-11 13:04:08 +02:00
8bd659e888 added new module 'tags.py' with classes 'Tag' and 'TagLine' 2023-09-11 13:04:08 +02:00
Oleksandr Kozachuk
3ef1339cc0 Fix extracting source file with type specification. 2023-09-09 11:53:32 +02:00
Oleksandr Kozachuk
ed567afbea Make it possible to print just question or answer on printing files. 2023-09-08 15:54:29 +02:00
Oleksandr Kozachuk
6e447018d5 Fix tags_completter. 2023-09-07 18:11:32 +02:00
a5c91adc41 configuration: minor improvements / fixes
Could not extend the subclass of 'TypedDict' the way I wanted, so I switched to 'dataclass'.
2023-08-17 07:46:47 +02:00
Oleksandr Kozachuk
380b7c1b67 Python 3.9 compatibility. 2023-08-16 12:24:03 +02:00
e8343fde01 test_main: added type annotations and a helper class / function 2023-08-16 11:15:48 +02:00
ee8deed320 configuration: added validation 2023-08-16 11:15:47 +02:00
dc13213c4d configuration is now a TypedDict in its own module 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' 2023-08-15 23:53:24 +02:00
ba41794f4e mypy: added 'disallow_untyped_defs = True' 2023-08-15 09:47:58 +02:00