gptel: Update docstrings for prompt/response prefixes
README: Mention `gptel-response-prefix-alist` gptel.el (gptel-prompt-prefix-alist, gptel-response-prefix-alist): Improve docstring.
This commit is contained in:
parent
644e341244
commit
e105a52541
2 changed files with 16 additions and 9 deletions
15
README.org
15
README.org
|
@ -305,13 +305,14 @@ These are packages that depend on GPTel to provide additional functionality
|
||||||
| =gptel-temperature= | Randomness in response text, 0 to 2. |
|
| =gptel-temperature= | Randomness in response text, 0 to 2. |
|
||||||
|---------------------------+---------------------------------------------------------------------|
|
|---------------------------+---------------------------------------------------------------------|
|
||||||
|
|
||||||
|---------------------------+---------------------------------------------------------------------|
|
|-----------------------------+----------------------------------------|
|
||||||
| *Chat UI options* | |
|
| *Chat UI options* | |
|
||||||
|---------------------------+---------------------------------------------------------------------|
|
|-----------------------------+----------------------------------------|
|
||||||
| =gptel-default-mode= | Major mode for dedicated chat buffers. |
|
| =gptel-default-mode= | Major mode for dedicated chat buffers. |
|
||||||
| =gptel-prompt-prefix-alist= | Text demarcating queries and replies. |
|
| =gptel-prompt-prefix-alist= | Text inserted before queries. |
|
||||||
|---------------------------+---------------------------------------------------------------------|
|
| =gptel-response-prefix-alist= | Text inserted before responses. |
|
||||||
|
|-----------------------------+----------------------------------------|
|
||||||
|
|
||||||
** Why another LLM client?
|
** Why another LLM client?
|
||||||
|
|
||||||
Other Emacs clients for LLMs prescribe the format of the interaction (a comint shell, org-babel blocks, etc). I wanted:
|
Other Emacs clients for LLMs prescribe the format of the interaction (a comint shell, org-babel blocks, etc). I wanted:
|
||||||
|
|
10
gptel.el
10
gptel.el
|
@ -228,7 +228,10 @@ defaults to `text-mode'."
|
||||||
'((markdown-mode . "### ")
|
'((markdown-mode . "### ")
|
||||||
(org-mode . "*** ")
|
(org-mode . "*** ")
|
||||||
(text-mode . "### "))
|
(text-mode . "### "))
|
||||||
"String inserted after the response from ChatGPT.
|
"String used as a prefix to the query being sent to the LLM.
|
||||||
|
|
||||||
|
This is meant for the user to distinguish between queries and
|
||||||
|
responses, and is removed from the query before it is sent.
|
||||||
|
|
||||||
This is an alist mapping major modes to the prefix strings. This
|
This is an alist mapping major modes to the prefix strings. This
|
||||||
is only inserted in dedicated gptel buffers."
|
is only inserted in dedicated gptel buffers."
|
||||||
|
@ -239,7 +242,10 @@ is only inserted in dedicated gptel buffers."
|
||||||
'((markdown-mode . "")
|
'((markdown-mode . "")
|
||||||
(org-mode . "")
|
(org-mode . "")
|
||||||
(text-mode . ""))
|
(text-mode . ""))
|
||||||
"String inserted after the response from ChatGPT.
|
"String inserted before the response from the LLM.
|
||||||
|
|
||||||
|
This is meant for the user to distinguish between queries and
|
||||||
|
responses.
|
||||||
|
|
||||||
This is an alist mapping major modes to the reply prefix strings. This
|
This is an alist mapping major modes to the reply prefix strings. This
|
||||||
is only inserted in dedicated gptel buffers before the AI's response."
|
is only inserted in dedicated gptel buffers before the AI's response."
|
||||||
|
|
Loading…
Add table
Reference in a new issue