juk0de
1932f8f6e9
configuration: improved error message when config file is missing
2024-02-26 16:27:00 +01:00
juk0de
15e8f8fd6b
main: resolved conflicting short parameters
2024-02-26 16:27:00 +01:00
juk0de
92fb2bbe15
glossary: added '__post_init__'
2024-02-26 16:27:00 +01:00
juk0de
ff6d4ded33
added 'glossary' command
2024-02-26 16:27:00 +01:00
juk0de
5377dc0784
main: missing directories are now created if user agrees
2024-02-26 16:27:00 +01:00
juk0de
3def4cb668
configuration: added 'glossaries' directory
2024-02-26 16:27:00 +01:00
juk0de
580c506483
glossary: now supports quoted and unquoted entries (incl. tests)
2024-02-26 16:27:00 +01:00
juk0de
3cca32a40b
glossary: added 'to_str()' function
2024-02-26 16:27:00 +01:00
juk0de
b4ef2e43ca
glossary: added description and removed useless input stripping
2024-02-26 16:27:00 +01:00
juk0de
4afd6d4e94
glossary: added suffix check
2024-02-26 16:27:00 +01:00
juk0de
be873867ea
added module 'glossary.py'
2024-02-26 16:27:00 +01:00
juk0de
82ad697b68
translation: added check for valid document format when using OpenAI
2024-02-26 16:27:00 +01:00
juk0de
a185c0db7b
translation: speficied / implemented the question format for OpenAI based translations
2024-02-26 16:27:00 +01:00
juk0de
c1dc152f48
translation: some small required refactoring
2024-02-26 16:27:00 +01:00
juk0de
f0129f7060
added new command 'translation'
2024-02-26 16:27:00 +01:00
Oleksandr Kozachuk
5d1bb1f9e4
Fix some of the commands.
2023-11-10 10:42:46 +01:00
Oleksandr Kozachuk
75a123eb72
Fix usage of the dynamic answer is some cases.
2023-10-24 12:59:13 +02:00
Oleksandr Kozachuk
dbe72ff11c
Activate and use OpenAI streaming API.
2023-10-21 14:21:48 +02:00
Oleksandr Kozachuk
bbc1ab5a0a
Fix source_code function with the dynamic answer class.
2023-10-20 14:02:09 +02:00
Oleksandr Kozachuk
2aee018708
Refactor message.Answer class in a way, that it can be constructed dynamically step by step, in preparation of using streaming API.
2023-10-20 13:43:31 +02:00
juk0de
40d0de50de
cmm: limited the message locations for the new cmm parameters to those that make sense
2023-10-20 09:16:03 +02:00
juk0de
72d31c26e9
main: improved parameter descriptions
2023-10-20 09:16:03 +02:00
juk0de
980e5ac51f
chat: changed default glob to '*.msg' in all ChatDB functions
2023-10-20 09:00:58 +02:00
Oleksandr Kozachuk
114282dfd8
Add --glob and --location flags to hist and question commands, to be able to specify the location and files they should use.
2023-10-19 16:03:51 +02:00
Oleksandr Kozachuk
9a493b57da
Per default use only files with .msg suffix ignoring other files.
2023-10-19 16:02:40 +02:00
Oleksandr Kozachuk
9b0951cb3f
Change type msg_location to an Enum instead of Literal to be able to get all values easy and improve type checks.
2023-10-19 16:00:44 +02:00
juk0de
3ea1f49027
cmm: added options '--tight' and '--no-paging' to the 'hist --print' cmd
2023-10-02 08:35:19 +02:00
juk0de
8f56399844
cmm: replaced options '--with-tags' and '--with-file' with '--with-metadata'
2023-10-01 10:11:16 +02:00
juk0de
e19c6bb1ea
hist_cmd: added module 'test_hist_cmd.py'
2023-09-30 08:25:33 +02:00
juk0de
811b2e6830
hist_cmd: implemented '--convert' option
2023-09-29 18:53:12 +02:00
juk0de
2a8f01aee4
chat: 'msg_gather()' now supports globbing
2023-09-29 07:16:20 +02:00
juk0de
efdb3cae2f
question: moved around some code
2023-09-29 07:16:20 +02:00
juk0de
aecfd1088d
chat: added message file format as ChatDB class member
2023-09-29 07:16:20 +02:00
juk0de
140dbed809
message: added function 'rm_file()' and test
2023-09-29 07:16:20 +02:00
juk0de
b8681e8274
message: fixed tag matching for YAML file format
2023-09-29 07:16:20 +02:00
juk0de
d2be53aeab
chat: switched to new message suffix and formats
...
- no longer using file suffix to choose the format
- added 'mformat' argument to 'write_xxx()' functions
- file suffix is now set by 'Message.to_file()' per default
2023-09-29 07:16:20 +02:00
juk0de
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
juk0de
6f3758e12e
question_cmd: fixed '--create' option
2023-09-29 07:15:46 +02:00
juk0de
b83b396c7b
question_cmd: fixed msg specific argument creation
2023-09-23 08:11:11 +02:00
juk0de
3c932aa88e
openai: fixed assignment of output tags
2023-09-23 08:11:11 +02:00
juk0de
80c5dcc801
question_cmd: input tag options without a tag (e. g. '-t') now select ALL tags
2023-09-23 08:11:11 +02:00
juk0de
33df84beaa
ai_factory: added optional 'def_ai' and 'def_model' arguments to 'create_ai'
2023-09-22 13:43:31 +02:00
juk0de
0657a1bab8
question_cmd: fixed AI and model arguments when repeating messages
2023-09-22 13:43:31 +02:00
juk0de
21f81f3569
question_cmd: implemented repetition of multiple messages
2023-09-22 13:43:31 +02:00
juk0de
ed379ed535
print_cmd: added option to print latest message
2023-09-20 10:18:06 +02:00
juk0de
c43bafe47a
main: improved metavar names and descriptions
2023-09-20 10:18:06 +02:00
juk0de
561003aabe
question_cmd: implemented repeating of the latest message
2023-09-20 10:17:59 +02:00
juk0de
29a20bd2d8
message: added 'equals()' function and improved robustness and debugging
2023-09-20 10:17:59 +02:00
juk0de
80a1457dd1
configuration: the cache folder can now be specified in the configuration file
2023-09-20 10:17:59 +02:00
juk0de
25fffb6fea
chat: db_read() and cache_read() now also support globbing and filtering
2023-09-17 10:59:29 +02:00