Commit Graph

  • 9a957a89ac Switch to current version of OpenAI. main Oleksandr Kozachuk 2024-03-30 14:17:38 +01:00
  • f17e76203a glossary cmd / main: added --print option translation juk0de 2024-02-26 16:34:30 +01:00
  • 6a77ec1d3b glossary test: added testcase for to_str() without description juk0de 2024-02-26 16:25:04 +01:00
  • f298a68140 glossary cmd test: added test for listing glossaries juk0de 2024-02-26 16:22:02 +01:00
  • 9bbf67af67 glossary: fixed printing of empty description juk0de 2024-02-26 15:55:10 +01:00
  • 284dd13201 glossary cmd: fixed globbing in 'list_glossaries' juk0de 2024-02-26 15:54:46 +01:00
  • 1932f8f6e9 configuration: improved error message when config file is missing juk0de 2024-02-07 20:44:36 +01:00
  • 15e8f8fd6b main: resolved conflicting short parameters juk0de 2024-02-07 20:32:53 +01:00
  • 9c683be994 glossary test: fixed cleanup of temporary files juk0de 2024-02-07 08:38:46 +01:00
  • 92fb2bbe15 glossary: added '__post_init__' juk0de 2024-02-06 18:49:43 +01:00
  • 2e0da31150 added test module for the 'glossary' command juk0de 2024-02-06 14:45:16 +01:00
  • ff6d4ded33 added 'glossary' command juk0de 2024-02-06 07:57:33 +01:00
  • 5377dc0784 main: missing directories are now created if user agrees juk0de 2024-02-05 18:41:31 +01:00
  • 3def4cb668 configuration: added 'glossaries' directory juk0de 2024-02-05 18:21:38 +01:00
  • 580c506483 glossary: now supports quoted and unquoted entries (incl. tests) juk0de 2024-02-05 08:26:27 +01:00
  • a1a090bcae glossary test: added testcases for 'to_str()' juk0de 2024-02-05 07:56:57 +01:00
  • 3cca32a40b glossary: added 'to_str()' function juk0de 2024-02-05 07:56:34 +01:00
  • 1b39fb1ac5 glossary test: added description test juk0de 2024-02-04 15:18:41 +01:00
  • b4ef2e43ca glossary: added description and removed useless input stripping juk0de 2024-02-04 15:18:15 +01:00
  • ff1e405991 glossary test: added suffix testcases juk0de 2024-02-03 21:10:21 +01:00
  • 4afd6d4e94 glossary: added suffix check juk0de 2024-02-03 21:09:33 +01:00
  • 94b812c31e glossary: added test module for glossaries juk0de 2024-02-02 18:31:37 +01:00
  • be873867ea added module 'glossary.py' juk0de 2024-02-02 15:19:07 +01:00
  • 82ad697b68 translation: added check for valid document format when using OpenAI juk0de 2023-11-08 20:10:30 +01:00
  • a185c0db7b translation: speficied / implemented the question format for OpenAI based translations juk0de 2023-11-08 19:36:43 +01:00
  • c1dc152f48 translation: some small required refactoring juk0de 2023-11-08 16:06:39 +01:00
  • f0129f7060 added new command 'translation' juk0de 2023-11-07 17:34:28 +01:00
  • 5d1bb1f9e4 Fix some of the commands. Oleksandr Kozachuk 2023-11-10 10:42:46 +01:00
  • 75a123eb72 Fix usage of the dynamic answer is some cases. Oleksandr Kozachuk 2023-10-24 12:59:13 +02:00
  • 7c1c67f8ff Merge pull request 'Dynamic Answer class and OpenAI streaming API' (#19) from dynamic_answer into main juk0de 2023-10-21 15:50:45 +02:00
  • dbe72ff11c Activate and use OpenAI streaming API. #19 dynamic_answer Oleksandr Kozachuk 2023-10-21 14:21:48 +02:00
  • bbc1ab5a0a Fix source_code function with the dynamic answer class. Oleksandr Kozachuk 2023-10-20 14:02:09 +02:00
  • 2aee018708 Refactor message.Answer class in a way, that it can be constructed dynamically step by step, in preparation of using streaming API. Oleksandr Kozachuk 2023-10-20 13:43:31 +02:00
  • 17c6fa2453 Merge pull request 'Configurable glob and location on question and hist commands' (#18) from cust_loc_glob into main ok 2023-10-20 09:47:03 +02:00
  • 5774278fb7 README: added new 'question' command parameters #18 juk0de 2023-10-20 08:52:42 +02:00
  • 40d0de50de cmm: limited the message locations for the new cmm parameters to those that make sense juk0de 2023-10-20 09:14:40 +02:00
  • 72d31c26e9 main: improved parameter descriptions juk0de 2023-10-20 08:57:12 +02:00
  • 980e5ac51f chat: changed default glob to '*.msg' in all ChatDB functions juk0de 2023-10-20 08:24:58 +02:00
  • 114282dfd8 Add --glob and --location flags to hist and question commands, to be able to specify the location and files they should use. Oleksandr Kozachuk 2023-10-19 16:03:51 +02:00
  • 9a493b57da Per default use only files with .msg suffix ignoring other files. Oleksandr Kozachuk 2023-10-19 16:02:40 +02:00
  • 9b0951cb3f Change type msg_location to an Enum instead of Literal to be able to get all values easy and improve type checks. Oleksandr Kozachuk 2023-10-19 16:00:44 +02:00
  • dca1bc621f Add Jinja2 as preparation for pipes. pipes Oleksandr Kozachuk 2023-09-09 21:22:41 +02:00
  • 5f29f60168 Add .old/ to git ignore, I use that dir ofter for old files, I do not want to delete. Oleksandr Kozachuk 2023-10-17 11:53:49 +02:00
  • 3ea1f49027 cmm: added options '--tight' and '--no-paging' to the 'hist --print' cmd #16 juk0de 2023-10-01 10:22:26 +02:00
  • 8f56399844 cmm: replaced options '--with-tags' and '--with-file' with '--with-metadata' juk0de 2023-10-01 10:11:16 +02:00
  • e4cb6eb22b README: updated 'hist' command description juk0de 2023-10-01 09:27:40 +02:00
  • e19c6bb1ea hist_cmd: added module 'test_hist_cmd.py' juk0de 2023-09-29 18:53:02 +02:00
  • 811b2e6830 hist_cmd: implemented '--convert' option juk0de 2023-09-29 06:59:46 +02:00
  • 2a8f01aee4 chat: 'msg_gather()' now supports globbing juk0de 2023-09-28 07:51:56 +02:00
  • efdb3cae2f question: moved around some code juk0de 2023-09-28 07:19:00 +02:00
  • aecfd1088d chat: added message file format as ChatDB class member juk0de 2023-09-27 08:15:35 +02:00
  • 140dbed809 message: added function 'rm_file()' and test juk0de 2023-09-27 08:14:56 +02:00
  • 01860ace2c test_question_cmd: modified tests to use '.msg' file suffix juk0de 2023-09-26 18:24:36 +02:00
  • df42bcee09 test_chat: added test for file_path collision detection juk0de 2023-09-26 18:18:11 +02:00
  • e34eab6519 test_chat: changed all tests to use the new '.msg' suffix juk0de 2023-09-26 10:12:24 +02:00
  • d07fd13e8e test_message: changed all tests to use the new '.msg' suffix juk0de 2023-09-26 10:12:14 +02:00
  • b8681e8274 message: fixed tag matching for YAML file format juk0de 2023-09-26 10:11:27 +02:00
  • d2be53aeab chat: switched to new message suffix and formats juk0de 2023-09-25 09:18:19 +02:00
  • 9ca9a23569 message: introduced file suffix '.msg' juk0de 2023-09-24 18:20:38 +02:00
  • 6f3758e12e question_cmd: fixed '--create' option juk0de 2023-09-29 07:15:46 +02:00
  • dd836cd72d Merge pull request 'cmm question --repeat supports multiple questions, added tests and fixes' (#15) from repeat_multi into main juk0de 2023-09-26 18:04:27 +02:00
  • 601ebe731a test_question_cmd: added a new testcase and made the old cases more explicit (easier to read) #15 repeat_multi juk0de 2023-09-24 08:53:37 +02:00
  • 87b25993be tests: moved 'FakeAI' and common functions to 'test_common.py' juk0de 2023-09-23 09:03:20 +02:00
  • a478408449 test_question_cmd: test fixes and cleanup juk0de 2023-09-23 08:10:35 +02:00
  • b83b396c7b question_cmd: fixed msg specific argument creation juk0de 2023-09-22 22:05:05 +02:00
  • 3c932aa88e openai: fixed assignment of output tags juk0de 2023-09-22 22:04:12 +02:00
  • b50caa345c test_question_cmd: introduced 'FakeAI' class juk0de 2023-09-22 13:38:24 +02:00
  • 80c5dcc801 question_cmd: input tag options without a tag (e. g. '-t') now select ALL tags juk0de 2023-09-22 07:51:05 +02:00
  • 33df84beaa ai_factory: added optional 'def_ai' and 'def_model' arguments to 'create_ai' juk0de 2023-09-22 07:41:15 +02:00
  • 0657a1bab8 question_cmd: fixed AI and model arguments when repeating messages juk0de 2023-09-21 18:21:43 +02:00
  • e9175aface test_question_cmd: added testcase for --repeat with multiple messages juk0de 2023-09-21 18:05:35 +02:00
  • 21f81f3569 question_cmd: implemented repetition of multiple messages juk0de 2023-09-21 07:48:24 +02:00
  • 4538624247 Merge pull request 'Implemented the 'question --repeat' command and other improvements' (#14) from repeat into main juk0de 2023-09-21 07:25:47 +02:00
  • ac3c19739d README: updates and fixes #14 repeat juk0de 2023-09-20 09:35:58 +02:00
  • ed379ed535 print_cmd: added option to print latest message juk0de 2023-09-20 09:04:40 +02:00
  • c43bafe47a main: improved metavar names and descriptions juk0de 2023-09-20 08:48:59 +02:00
  • 7dd83428fb test_question_cmd: added more testcases for '--repeat' juk0de 2023-09-19 15:19:41 +02:00
  • 3ad4b96b8f test_question_cmd: added testclass for the 'question_cmd()' function juk0de 2023-09-18 09:57:19 +02:00
  • 561003aabe question_cmd: implemented repeating of the latest message juk0de 2023-09-14 08:32:01 +02:00
  • 59eb45a3ca chat: improved message equality checks juk0de 2023-09-19 09:48:12 +02:00
  • 29a20bd2d8 message: added 'equals()' function and improved robustness and debugging juk0de 2023-09-19 09:36:23 +02:00
  • 80a1457dd1 configuration: the cache folder can now be specified in the configuration file juk0de 2023-09-18 14:34:10 +02:00
  • f964c5471e Merge pull request 'Refactoring, fixes and new features for the 'chat.py' module' (#12) from chat_refactoring into main juk0de 2023-09-18 14:23:51 +02:00
  • 25fffb6fea chat: db_read() and cache_read() now also support globbing and filtering #12 chat_refactoring juk0de 2023-09-17 09:13:46 +02:00
  • cf572e1882 chat: added functions db_move() and chat_move() (and tests) juk0de 2023-09-16 19:52:53 +02:00
  • 2fb7410b43 chat: added functions msg_in_cache() and msg_in_db(), also tests juk0de 2023-09-15 22:42:11 +02:00
  • 33ae27f00e chat: msg_remove() now supports multiple locations juk0de 2023-09-15 16:00:05 +02:00
  • f6a6e6036b chat: added validation during initialization juk0de 2023-09-15 14:41:42 +02:00
  • 525cdb92a1 message / chat: 'msg_id()' now returns 'file_path.stem' (removed suffix) juk0de 2023-09-15 12:20:41 +02:00
  • fc82f85b7c chat: added new functions: msg_unique_id(), msg_unique_content() and tests juk0de 2023-09-15 10:17:20 +02:00
  • d90845b58b chat: added new functions to ChatDB: msg_gather(), msg_find(), msg_remove() juk0de 2023-09-15 09:28:39 +02:00
  • 98777295d6 refactor: renamed (almost) all Chat/ChatDB functions juk0de 2023-09-15 08:41:32 +02:00
  • f6109949c8 chat: ChatDB now correctly ignores files that contain no valid messages juk0de 2023-09-14 16:05:18 +02:00
  • 071871f929 chat et al: '.next' and '.config.yaml' are now ignored by ChatDB juk0de 2023-09-14 12:45:11 +02:00
  • 5cb88dad1b chat: implemented special version of 'latest_message()' for the ChatDB class juk0de 2023-09-14 11:45:47 +02:00
  • 17a0264025 question_cmd: now also accepts Messages as source files #11 juk0de 2023-09-13 14:56:40 +02:00
  • 7f4a16894e Add pre-commit checks into push webhook. Oleksandr Kozachuk 2023-09-13 11:08:02 +02:00
  • 26e3d38afb Add the Gitea web hooks. Oleksandr Kozachuk 2023-09-13 10:53:12 +02:00
  • b5af751193 openai: added test module juk0de 2023-09-13 08:49:06 +02:00
  • a7345cbc41 ai_factory: fixed argument parsing bug juk0de 2023-09-13 07:52:05 +02:00