1
0
Fork 0
Commit graph

56 commits

Author SHA1 Message Date
Bram Schoenmakers a0e06cb928
Version bump 2024-04-24 21:37:45 +02:00
Bram Schoenmakers 38f74f1a24
Refactored gathering of summary parameters
There was a bug causing the kagi-summarize-url to break, due to an
incorrect parameter set.
2024-04-20 09:54:47 +02:00
Bram Schoenmakers ee601f4b2e
Merge branch 'main' into prompts 2024-04-10 12:08:55 +02:00
Bram Schoenmakers 42061aae3a
Simplify error response function, no need for customization 2024-04-10 07:25:44 +02:00
Bram Schoenmakers 380c63a0c3
Add test for proper error handling by kagi-summarize 2024-04-10 07:22:36 +02:00
Bram Schoenmakers 2c2e88eb04
Add test for invalid API tokens 2024-04-09 20:32:54 +02:00
Bram Schoenmakers c25c0ead95
Fix fictitious error output 2024-04-09 19:48:41 +02:00
Bram Schoenmakers e4200270c0
First attempt to improve error handling whenever FastGPT returns error output 2024-04-05 22:54:09 +02:00
Bram Schoenmakers 3f60094815
Add check that kagi-fastgpt-prompt is called non-interactively 2024-03-31 17:49:38 +02:00
Bram Schoenmakers 3a445b3c90
Fix tests for the changed variable name 2024-03-28 22:25:27 +01:00
Bram Schoenmakers 9b58724986
Call function when a predefined prompt has one
Also test if the variable with predefined prompts is used properly by kagi-fastgpt-prompt.
2024-03-23 09:37:39 +01:00
Bram Schoenmakers 2b9ab2fa0a
Improve the placeholder handling in prompts 2024-03-22 23:07:11 +01:00
Bram Schoenmakers 086b6b30f6
Let kagi-fastgpt-prompt use predefined prompts and fill in placeholders 2024-03-19 21:30:38 +01:00
Bram Schoenmakers 72119bd9b7
Add no-cache parameter to kagi-summarize-{buffer,region} 2024-03-06 21:06:43 +01:00
Bram Schoenmakers 9773229d6b
Normalize to t when kagi-summarizer-cache is non-nil 2024-03-06 20:35:59 +01:00
Bram Schoenmakers 5732de8bcd
Add no-cache parameter to kagi-summarize 2024-03-06 20:28:23 +01:00
Bram Schoenmakers 0570505cff
Bump to version 0.4 2024-02-29 20:53:09 +01:00
Bram Schoenmakers f5f751390f
Update package headings 2024-02-29 20:52:28 +01:00
Bram Schoenmakers eb846635a0
Avoid repetition of the choices of the summary choices 2024-02-23 22:23:11 +01:00
Bram Schoenmakers fa402763fa
Fix tests for inserting a summary 2024-02-22 23:29:46 +01:00
Bram Schoenmakers 602b7dffb4
Add tests for kagi-summarize-url 2024-02-22 23:18:44 +01:00
Bram Schoenmakers 02be283f3a
Add test for kagi-summarize-region 2024-02-22 22:30:57 +01:00
Bram Schoenmakers 199cc478df
Adapt description 2024-02-22 22:18:48 +01:00
Bram Schoenmakers c8a7658bd3
Create macro to check values in a request object 2024-02-22 21:56:02 +01:00
Bram Schoenmakers fbb4ead05c
Create macro to check expectations on arguments of called functions 2024-02-22 21:41:50 +01:00
Bram Schoenmakers e2b81ef432
Add tests for kagi-summarize-buffer 2024-02-22 07:04:26 +01:00
Bram Schoenmakers f086fd433a
Add first tests for kagi-summarize-buffer 2024-02-20 06:57:01 +01:00
Bram Schoenmakers 3324bfe1d7
Remove redundant return values
nil is the implied return value
2024-02-20 06:47:49 +01:00
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 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 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