9ca9a23569
message: introduced file suffix '.msg'
...
- '.msg' suffix is always used for writing
- 'Message.to_file()' will set the file suffix if the given file_path has none
- added 'mformat' argument to 'Message.to_file()' for choosing the file format
- '.txt' and '.yaml' suffixes are only supported for reading
2023-09-29 07:16:20 +02:00
6f3758e12e
question_cmd: fixed '--create' option
2023-09-29 07:15:46 +02:00
b83b396c7b
question_cmd: fixed msg specific argument creation
2023-09-23 08:11:11 +02:00
3c932aa88e
openai: fixed assignment of output tags
2023-09-23 08:11:11 +02:00
80c5dcc801
question_cmd: input tag options without a tag (e. g. '-t') now select ALL tags
2023-09-23 08:11:11 +02:00
33df84beaa
ai_factory: added optional 'def_ai' and 'def_model' arguments to 'create_ai'
2023-09-22 13:43:31 +02:00
0657a1bab8
question_cmd: fixed AI and model arguments when repeating messages
2023-09-22 13:43:31 +02:00
21f81f3569
question_cmd: implemented repetition of multiple messages
2023-09-22 13:43:31 +02:00
ed379ed535
print_cmd: added option to print latest message
2023-09-20 10:18:06 +02:00
c43bafe47a
main: improved metavar names and descriptions
2023-09-20 10:18:06 +02:00
561003aabe
question_cmd: implemented repeating of the latest message
2023-09-20 10:17:59 +02:00
29a20bd2d8
message: added 'equals()' function and improved robustness and debugging
2023-09-20 10:17:59 +02:00
80a1457dd1
configuration: the cache folder can now be specified in the configuration file
2023-09-20 10:17:59 +02:00
25fffb6fea
chat: db_read() and cache_read() now also support globbing and filtering
2023-09-17 10:59:29 +02:00
cf572e1882
chat: added functions db_move() and chat_move() (and tests)
2023-09-17 10:59:29 +02:00
2fb7410b43
chat: added functions msg_in_cache() and msg_in_db(), also tests
2023-09-17 10:59:29 +02:00
33ae27f00e
chat: msg_remove() now supports multiple locations
2023-09-17 10:59:29 +02:00
f6a6e6036b
chat: added validation during initialization
2023-09-17 10:59:29 +02:00
525cdb92a1
message / chat: 'msg_id()' now returns 'file_path.stem' (removed suffix)
2023-09-17 10:59:29 +02:00
fc82f85b7c
chat: added new functions: msg_unique_id(), msg_unique_content() and tests
2023-09-17 10:59:24 +02:00
d90845b58b
chat: added new functions to ChatDB: msg_gather(), msg_find(), msg_remove()
2023-09-17 10:58:26 +02:00
98777295d6
refactor: renamed (almost) all Chat/ChatDB functions
2023-09-17 10:58:26 +02:00
f6109949c8
chat: ChatDB now correctly ignores files that contain no valid messages
2023-09-17 10:58:10 +02:00
071871f929
chat et al: '.next' and '.config.yaml' are now ignored by ChatDB
2023-09-14 16:06:00 +02:00
5cb88dad1b
chat: implemented special version of 'latest_message()' for the ChatDB class
2023-09-14 16:05:49 +02:00
17a0264025
question_cmd: now also accepts Messages as source files
2023-09-13 17:44:39 +02:00
a7345cbc41
ai_factory: fixed argument parsing bug
2023-09-13 07:52:05 +02:00
Oleksandr Kozachuk
1ec3d6fcda
Make it possible to specify the AI in config command.
2023-09-12 16:37:50 +02:00
Oleksandr Kozachuk
f96e82bdd7
Implement the config -l and config -m commands.
2023-09-12 16:34:17 +02:00
Oleksandr Kozachuk
2b62cb8c4b
Remove the -*terminal_width() to save space on screen.
2023-09-12 13:48:28 +02:00
d4021eeb11
configuration: made 'default' AI ID optional
2023-09-11 07:38:49 +02:00
c143c001f9
configuration: improved config file format
2023-09-10 19:57:06 +02:00
59b851650a
question_cmd: when no tags are specified, no tags are selected
2023-09-10 19:57:06 +02:00
6f71a2ff69
message: to_file() now uses intermediate temporary file
2023-09-10 19:57:06 +02:00
eca44b14cb
message: fixed matching with empty tag sets
2023-09-10 19:55:21 +02:00
b48667bfa0
openai: stores AI.ID instead of AI.name in message
2023-09-10 19:18:44 +02:00
533ee1c1a9
question_cmd: added message filtering by tags
2023-09-10 19:18:44 +02:00
cf50818f28
question_cmd: fixed '--ask' command
2023-09-10 19:18:44 +02:00
dd3d3ffc82
chat: added check for existing files when creating new filenames
2023-09-10 19:18:44 +02:00
1e3bfdd67f
chat: added 'update_messages()' function and test
2023-09-10 19:14:11 +02:00
53582a7123
question_cmd: fixed source code extraction and added a testcase
2023-09-10 19:14:11 +02:00
Oleksandr Kozachuk
39b518a8a6
Small fixes.
2023-09-09 16:05:27 +02:00
Oleksandr Kozachuk
d22877a0f1
Port print arguments -q/-a/-S from main to restructuring.
2023-09-09 15:38:40 +02:00
Oleksandr Kozachuk
7cf62c54ef
Allow in question -s for just sourcing file and -S to source file with ``` encapsulation.
2023-09-09 15:16:17 +02:00
c0b7d17587
question_cmd: fixes
2023-09-09 08:51:44 +02:00
76f2373397
configuration: added tests
2023-09-09 08:31:45 +02:00
eaa399bcb9
configuration et al: implemented new Config format
2023-09-09 08:31:45 +02:00
b1a23394fc
cmm: splitted commands into separate modules (and more cleanup)
2023-09-09 08:31:45 +02:00
2df9dd6427
cmm: removed all the old code and modules
2023-09-08 13:04:11 +02:00
74a26b8c2f
setup: added 'ais' subfolder
2023-09-08 09:44:07 +02:00