1
0
Fork 0

Put engine descriptions in the customize type specification

This commit is contained in:
Bram Schoenmakers 2024-01-05 23:50:13 +01:00
parent 71a626e691
commit 4e70777b11
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

16
kagi.el
View file

@ -73,10 +73,11 @@ https://kagi.com/settings?p=api"
:type '(choice string function) :type '(choice string function)
:group 'kagi) :group 'kagi)
(defvar kagi--summarizer-engines '("agnes" (defvar kagi--summarizer-engines
"cecil" '(("agnes" . "Friendly, descriptive, fast summary.")
"daphne" ("cecil" . "Formal, technical, analytical summary.")
"muriel") ("daphne" . "Informal, creative, friendly summary.")
("muriel" . "Best-in-class summary using Kagi's enterprise-grade model (at different pricing)."))
"List of Kagi Summarizer engines. "List of Kagi Summarizer engines.
See `kagi-summarizer-engine' for a brief description per engine.") See `kagi-summarizer-engine' for a brief description per engine.")
@ -84,16 +85,11 @@ See `kagi-summarizer-engine' for a brief description per engine.")
(defcustom kagi-summarizer-engine "cecil" (defcustom kagi-summarizer-engine "cecil"
"Which summary engine to use. "Which summary engine to use.
- cicil :: Friendly, descriptive, fast summary.
- agnes :: Formal, technical, analytical summary.
- daphne :: Informal, creative, friendly summary.
- muriel :: Best-in-class summary using our enterprise-grade model.
Note that the muriel model is enterprise grade and has different Note that the muriel model is enterprise grade and has different
pricing. Refer to the API documentation for more info at pricing. Refer to the API documentation for more info at
https://help.kagi.com/kagi/api/summarizer.html." https://help.kagi.com/kagi/api/summarizer.html."
:type (append '(choice) :type (append '(choice)
(mapcar (lambda (engine) `(const ,engine)) (mapcar (lambda (engine) `(const :doc ,(cdr engine) ,(car engine)))
kagi--summarizer-engines)) kagi--summarizer-engines))
:group 'kagi) :group 'kagi)