1
0
Fork 0
Commit graph

305 commits

Author SHA1 Message Date
Bram Schoenmakers b0e33aa8e6
Prompts may be functions returning text
This can be used to make an interactive variant of a prompt and a
non-interactive one.
2024-03-31 17:43:20 +02:00
Bram Schoenmakers af03f7d1f8
Remove TODO 2024-03-31 11:47:47 +02:00
Bram Schoenmakers 48d90f7208
Adjust define-kagi-fastgpt-prompt to match kagi-proofread functionality 2024-03-31 10:51:32 +02:00
Bram Schoenmakers 55487fab5b
Docstring and variable name changes 2024-03-28 22:33:11 +01:00
Bram Schoenmakers 3a445b3c90
Fix tests for the changed variable name 2024-03-28 22:25:27 +01:00
Bram Schoenmakers 3843afb785
Push the symbol name as a string in the car 2024-03-28 22:24:46 +01:00
Bram Schoenmakers 26bcbcea77
Add macro to define your own prompts 2024-03-28 22:14:23 +01:00
Bram Schoenmakers ef799275ea
Remove details 2024-03-28 06:25:05 +01:00
Bram Schoenmakers 5753556163
Fix language code for Czech 2024-03-27 22:28:21 +01:00
Bram Schoenmakers ccfc34b1c0
Remove the open source claim 2024-03-27 22:13:45 +01:00
Bram Schoenmakers 407781fe4e
Adjust docstring 2024-03-23 10:05:57 +01:00
Bram Schoenmakers 19e779ad37
Minor docstring adjustments 2024-03-23 09:45:31 +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 554a19285b
Isolate the prompt construction in a separate function 2024-03-22 23:45:09 +01:00
Bram Schoenmakers 2b9ab2fa0a
Improve the placeholder handling in prompts 2024-03-22 23:07:11 +01:00
Bram Schoenmakers 658662bfd4
Remove the obsoleted function kagi-fastgpt 2024-03-19 21:42:06 +01:00
Bram Schoenmakers 47ef4d218f
Support traditional Chinese as possible summary language 2024-03-19 21:36:26 +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 d473b1b6fa
Remove suggestion for defining your own functions 2024-03-07 19:46:24 +01:00
Bram Schoenmakers 7e302e0357
Do not export old changelog entries 2024-03-06 23:06:41 +01:00
Bram Schoenmakers 581b8b3bc5
Update README 2024-03-06 21:26:22 +01:00
Bram Schoenmakers 3671f78c6a
Refactored the internal kagi--get-summarizer-parameters function
Take a list of promptable items, to be passed on from the caller.
2024-03-06 21:20:15 +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 e1f2f6fcc8
Various fixes in the README 2024-03-05 22:23:30 +01:00
Bram Schoenmakers 64e2779335
Extend list of options when the universal prefix is passed 2024-03-05 21:49:45 +01:00
Bram Schoenmakers 7d061a8ef8
Add comments that appear with just --list 2024-03-02 21:58:07 +01:00
Bram Schoenmakers afac09ab32
Remove unused recipe 2024-03-02 21:57:47 +01:00
Bram Schoenmakers 3080cea644
Make test the default recipe 2024-03-02 21:55:00 +01:00
Bram Schoenmakers 6f9fd09471
Define a variable for storing default and user-defined FastGPT prompts 2024-03-01 22:46:14 +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 d09152cabc
Update the Embark section in the README 2024-02-29 20:44:40 +01:00
Bram Schoenmakers aafd0bf27c
Merge branch 'test' 2024-02-25 14:55:02 +01:00
Bram Schoenmakers bad0c2a50e
Add docstring 2024-02-23 22:58:36 +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 b3191b750d
Allow optional pattern for which tests to run 2024-02-22 22:15:46 +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 1702fadaeb
Adapt docstring 2024-02-22 07:05:01 +01:00
Bram Schoenmakers e2b81ef432
Add tests for kagi-summarize-buffer 2024-02-22 07:04:26 +01:00
Bram Schoenmakers 28793401df
Allow kagi-summarize-buffer to be used non-interactively 2024-02-21 12:44:31 +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 146d128cd2
let* to let 2024-02-18 22:28:38 +01:00