Rename the custom variables with the entry point URLs
Took the liberty to rename because the package is still in its infancy. Besides, it's unlikely that anyone would change these URLs in their init file.
This commit is contained in:
parent
bc0eb7023b
commit
48bb880885
2 changed files with 12 additions and 12 deletions
|
@ -97,11 +97,11 @@ The token can be supplied directly as a string, but you could write a lambda to
|
|||
|
||||
#+RESULTS:
|
||||
| Custom variable | Description |
|
||||
|-------------------------------------+----------------------------------------------------------------------|
|
||||
| kagi-api-enrichment-url | The Kagi Enrichment API entry point. |
|
||||
| kagi-api-fastgpt-url | The Kagi FastGPT API entry point. |
|
||||
|---------------------------------+---------------------------------------------------------|
|
||||
| kagi-api-token | The Kagi API token. |
|
||||
| kagi-fastgpt-api-url | The Kagi FastGPT API entry point. |
|
||||
| kagi-summarize-default-language | Default target language of the summary. |
|
||||
| kagi-summarizer-api-url | The Kagi Summarizer API entry point. |
|
||||
| kagi-summarizer-cache | Determines whether the Summarizer should cache results. |
|
||||
| kagi-summarizer-engine | Which summary engine to use. |
|
||||
|
||||
|
|
8
kagi.el
8
kagi.el
|
@ -63,12 +63,12 @@ https://kagi.com/settings?p=api"
|
|||
:type '(choice string function)
|
||||
:group 'kagi)
|
||||
|
||||
(defcustom kagi-api-fastgpt-url "https://kagi.com/api/v0/fastgpt"
|
||||
(defcustom kagi-fastgpt-api-url "https://kagi.com/api/v0/fastgpt"
|
||||
"The Kagi FastGPT API entry point."
|
||||
:type '(choice string function)
|
||||
:group 'kagi)
|
||||
|
||||
(defcustom kagi-api-summarizer-url "https://kagi.com/api/v0/summarize"
|
||||
(defcustom kagi-summarizer-api-url "https://kagi.com/api/v0/summarize"
|
||||
"The Kagi Summarizer API entry point."
|
||||
:type '(choice string function)
|
||||
:group 'kagi)
|
||||
|
@ -218,7 +218,7 @@ interpretation."
|
|||
(curl-flags (kagi--curl-flags))
|
||||
(all-flags (append call-process-flags
|
||||
curl-flags
|
||||
(list kagi-api-fastgpt-url)))
|
||||
(list kagi-fastgpt-api-url)))
|
||||
(return (apply #'call-process-region all-flags)))
|
||||
(if (zerop return)
|
||||
(buffer-string)
|
||||
|
@ -238,7 +238,7 @@ interpretation."
|
|||
(curl-flags (kagi--curl-flags))
|
||||
(all-flags (append call-process-flags
|
||||
curl-flags
|
||||
(list kagi-api-summarizer-url)))
|
||||
(list kagi-summarizer-api-url)))
|
||||
(return (apply #'call-process-region all-flags)))
|
||||
(if (zerop return)
|
||||
(buffer-string)
|
||||
|
|
Loading…
Reference in a new issue