Commit Graph

61 Commits

Author SHA1 Message Date
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
3ef1339cc0 Fix extracting source file with type specification. 2023-09-09 11:53:32 +02:00
ed567afbea Make it possible to print just question or answer on printing files. 2023-09-08 15:54:29 +02:00
6e447018d5 Fix tags_completter. 2023-09-07 18:11:32 +02:00
juk0de
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
380b7c1b67 Python 3.9 compatibility. 2023-08-16 12:24:03 +02:00
juk0de
ee8deed320 configuration: added validation 2023-08-16 11:15:47 +02:00
juk0de
dc13213c4d configuration is now a TypedDict in its own module 2023-08-16 08:14:41 +02:00
juk0de
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
juk0de
a5075b14a0 added short aliases for subcommands 2023-08-13 08:41:59 +02:00
juk0de
1e15a52e26 updated README and some minor renaming 2023-08-12 18:34:19 +02:00
juk0de
22bebc16ed fixed min nr of expected arguments 2023-08-12 14:16:16 +02:00
juk0de
f7ba0c000f renamed 'model' command to 'config' 2023-08-12 14:16:16 +02:00
b6eb7d9af8 Fix autocompletion. 2023-08-12 13:58:15 +02:00
juk0de
f371a6146e moved 'read_config' to storage.py and added 'write_config' 2023-08-12 13:55:39 +02:00
4b2f634b79 Remove wrong comment and make it more readable. 2023-08-12 12:30:07 +02:00
e4d055b900 Fix the max_tokens, temperature, and model setup. 2023-08-12 12:20:49 +02:00
juk0de
bc5e6228a6 defined 'ConfigType' for configuration file type hinting 2023-08-12 10:21:09 +02:00
juk0de
93a8b0081a main: cleanup 2023-08-12 09:50:54 +02:00
juk0de
5119b3a874 fixed 'ask' command 2023-08-12 08:28:07 +02:00
juk0de
5a435c5f8f fixed 'tag' and 'hist' commands 2023-08-12 08:20:00 +02:00
juk0de
f90e7bcd47 fixed 'hist' command and simplified reading the config file 2023-08-12 08:13:31 +02:00
juk0de
6406d2f5b5 started to implement sub-commands 2023-08-11 18:27:33 +02:00
9b6b13993c Output the tag list sorted alphabetically. 2023-08-05 23:07:39 +02:00
c5c4a6628f Allow character ":" in tags. 2023-08-05 21:00:30 +02:00
juk0de
f8ed0e3636 tags are now separated by ' ' (old format is still readable) 2023-08-05 18:02:03 +02:00
caf5244d52 Add action -L to list all available models 2023-08-05 16:04:25 +02:00
ca3a53e68b Fix backwards compatibility of -W flag. 2023-08-05 15:35:27 +02:00
8bb2a002a6 Fixed tests. 2023-08-05 13:21:17 +02:00
01de75bef3 Improve -l output. 2023-08-05 12:39:46 +02:00
1bb553b223 Merge branch 'main' of stage.fjerkroa.no:ok/ChatMastermind 2023-08-05 12:36:13 +02:00
bb8aa2f817 Fix read_file declaration. 2023-08-05 12:36:04 +02:00
juk0de
8e4a02b932 added option '-a' to match all tags when selecting chat history entries 2023-08-05 11:41:36 +02:00
juk0de
5d55bed0ec added option '-l' to list all tags and their frequency 2023-08-05 11:16:06 +02:00
juk0de
32bd17594b Added option '-W' to print chat history with filenames 2023-08-05 08:09:35 +02:00
juk0de
b57d78a875 added option '-w' to print chat history with tags 2023-08-04 22:24:30 +02:00
648d7b35cc Merge branch 'main' of fstage:ok/ChatMastermind 2023-05-08 13:59:42 +02:00
6ae0e7d084 Improve handling of printing source code only output. 2023-05-07 16:32:24 +02:00