1
0
Fork 0
Commit graph

305 commits

Author SHA1 Message Date
Bram Schoenmakers e3e18dfc25
Minor rephrase 2024-02-18 22:18:29 +01:00
Bram Schoenmakers f5cc1475bb
Refactored summarizer summary type selection 2024-02-18 22:17:21 +01:00
Bram Schoenmakers 01a761a2ff
Refactored summarizer engine selection and added tests 2024-02-18 20:19:44 +01:00
Bram Schoenmakers 7d6f6f1cf1
Refactored language selection
Fallback to English if all else fails (invalid language given and an
invalid default language code).
2024-02-18 09:08:54 +01:00
Bram Schoenmakers 016e453238
Reformat and add some comments 2024-02-18 08:03:01 +01:00
Bram Schoenmakers 6d1b4cbc0f
Docstring update 2024-02-18 07:47:34 +01:00
Bram Schoenmakers d2187e309a
Change test for upcasing 2024-02-18 07:47:14 +01:00
Bram Schoenmakers 21c9fcda38
Add tests on summary language, rename variable 2024-02-18 07:32:46 +01:00
Bram Schoenmakers f68276593e
Add test for number of API calls 2024-02-18 03:55:43 +01:00
Bram Schoenmakers f78c2688a4
Add some basic tests for the summarizer 2024-02-16 22:28:45 +01:00
Bram Schoenmakers de0ab986ae
Catch any API call 2024-02-16 08:00:20 +01:00
Bram Schoenmakers da103bf236
Add more interactivity tests 2024-02-16 07:48:10 +01:00
Bram Schoenmakers 76ae8b858a
Rename suite 2024-02-15 22:29:23 +01:00
Bram Schoenmakers 316df52e09
Fill comments 2024-02-15 08:01:49 +01:00
Bram Schoenmakers 8e68af9216
Check that the input text appears in the kagi-fastgpt-prompt call 2024-02-15 07:59:10 +01:00
Bram Schoenmakers 1bdbb69000
No need to have a non-nil return value 2024-02-15 07:38:53 +01:00
Bram Schoenmakers f8b01e4225
Removed obsolete tests 2024-02-14 21:14:38 +01:00
Bram Schoenmakers a83540fc0b
Add some tests for kagi-{translate,proofread} when called interactively 2024-02-14 21:11:25 +01:00
Bram Schoenmakers ed6df4ba19
Added kagi-proofread tests, adjusted kagi-translate tests 2024-02-14 20:54:32 +01:00
Bram Schoenmakers 5415473f67
(require 'buttercup) 2024-02-14 20:53:44 +01:00
Bram Schoenmakers 82e903223e
Updated screenshot with a more up to date FastGPT response 2024-02-14 20:36:41 +01:00
Bram Schoenmakers 0c82995ed9
Added a section on setting up unit test execution 2024-02-14 20:26:15 +01:00
Bram Schoenmakers 019391a618
Merge branch 'main' into test 2024-02-14 08:49:57 +01:00
Bram Schoenmakers c32eb03aaf
Let kagi--fastgpt do the trimming
This will reduce the amount of newlines being printed on the shell.
2024-02-14 08:49:21 +01:00
Bram Schoenmakers 8197d8c4ff
kagi-fastgpt and kagi-fastgpt-prompt are alike, favor the latter 2024-02-14 08:46:37 +01:00
Bram Schoenmakers fbdeec45d9
Pass interactivity to kagi-fastgpt-prompt 2024-02-13 23:08:59 +01:00
Bram Schoenmakers 2dcf2b7c6a
No need to call through 2024-02-13 23:08:46 +01:00
Bram Schoenmakers a3d9eb9a30
Add some tests and define some spies at higher level 2024-02-13 22:19:09 +01:00
Bram Schoenmakers 4bb7a1d63e
Added tests for kagi-translate 2024-02-13 08:40:09 +01:00
Bram Schoenmakers ec63275484
Add more tests 2024-02-12 22:43:26 +01:00
Bram Schoenmakers 62fe326f2c
Remove obsolete variable 2024-02-12 22:43:14 +01:00
Bram Schoenmakers 4e3163f980
Cleanup the calling code
Have a single entry point to the Kagi API, which can be stubbed. Also
remove the stubbed responses as we'll cover things with testing now.
2024-02-12 12:05:39 +01:00
Bram Schoenmakers b6c7d4b6ed
Fix copyright 2024-02-12 12:03:57 +01:00
Bram Schoenmakers 4dd622c865
Merge branch 'main' into test 2024-02-12 11:22:53 +01:00
Bram Schoenmakers 2c57f819ec
Use the kagi-bold face to format reference indices 2024-02-12 11:22:05 +01:00
Bram Schoenmakers e6da7af9ac
Added more tests on output formatting 2024-02-12 11:21:42 +01:00
Bram Schoenmakers d59232e9bb
Enable lisp-data mode for Cask 2024-02-12 07:58:14 +01:00
Bram Schoenmakers 239b8cd17d
Update creation date 2024-02-11 20:56:16 +01:00
Bram Schoenmakers c01425f31c
First test added 2024-02-11 20:53:29 +01:00
Bram Schoenmakers 166730181a
Merge branch 'main' into test 2024-02-11 20:53:05 +01:00
Bram Schoenmakers 0bb20e5295
Remove redundant quotes 2024-02-11 20:51:51 +01:00
Bram Schoenmakers 2a89340c1e
Compile before test 2024-02-11 20:50:42 +01:00
Bram Schoenmakers 09f24ccaa3
Add some infrastructure for testing 2024-02-11 12:12:27 +01:00
Bram Schoenmakers 16e20a9c88
Fix language selection menu, which showed the language code twice 2024-02-10 20:32:24 +01:00
Bram Schoenmakers 78f69a017b
Update changelog 2024-02-09 20:50:50 +01:00
Bram Schoenmakers 091609235e
Pass on the interactivity flag 2024-02-09 12:54:36 +01:00
Bram Schoenmakers 852e7bd210
Rename function, adjust docstrings 2024-02-09 12:51:54 +01:00
Bram Schoenmakers cbb82bdca6
Improve readability a bit 2024-02-09 10:02:34 +01:00
Bram Schoenmakers a8a5786ace
Refactored and merged some common functionality 2024-02-09 08:40:41 +01:00
Bram Schoenmakers d95e5ebfbe
Change grammar check to proofreading 2024-02-08 22:58:26 +01:00