1
0
Fork 0

Define a variable for storing default and user-defined FastGPT prompts

This commit is contained in:
Bram Schoenmakers 2024-03-01 22:46:14 +01:00
parent 0570505cff
commit 6f9fd09471
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

15
kagi.el
View file

@ -73,6 +73,21 @@ https://kagi.com/settings?p=api"
:type '(choice string function)
:group 'kagi)
(defcustom kagi-fastgpt-prompts
'(("Definition" . "Define the following word: ")
("Synonyms" . "Find synonyms for the following word: "))
"Prompts to choose for a buffer, text or region.
This is a list of (NAME . PROMPT) elements. The NAME is a short
name for the prompt. PROMPT can be a string or a
function (without parameters), returning a prompt string.
The placeholder `%s' can be used inside the prompt to insert the
text at the given place. If missing, the input will be appended
to the prompt."
:type '(alist :key-type string :value-type (choice string function))
:group 'kagi)
(defvar kagi--summarizer-engines
'(("agnes" . "Friendly, descriptive, fast summary.")
("cecil" . "Formal, technical, analytical summary.")