[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gptel e79e386964 191/273: README: Move gptel-request to FA
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gptel e79e386964 191/273: README: Move gptel-request to FAQ |
Date: |
Wed, 1 May 2024 10:02:22 -0400 (EDT) |
branch: elpa/gptel
commit e79e38696484aaca86eebc67780458fbd12050cc
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
README: Move gptel-request to FAQ
* README.org (FAQ): Move the gptel-request description to the
FAQ (for issues like #191.)
---
README.org | 39 ++++++++++++++++++++++-----------------
1 file changed, 22 insertions(+), 17 deletions(-)
diff --git a/README.org b/README.org
index ff1cbe59c5..94a6ec6e62 100644
--- a/README.org
+++ b/README.org
@@ -62,13 +62,13 @@ GPTel uses Curl if available, but falls back to
url-retrieve to work without ext
- [[#faq][FAQ]]
-
[[#i-want-the-window-to-scroll-automatically-as-the-response-is-inserted][I
want the window to scroll automatically as the response is inserted]]
-
[[#i-want-the-cursor-to-move-to-the-next-prompt-after-the-response-is-inserted][I
want the cursor to move to the next prompt after the response is inserted]]
- - [[#i-want-to-change-the-prefix-before-the-prompt-and-response][I want
to change the prefix before the prompt and response]]
+ - [[#i-want-to-change-the-formatting-of-the-prompt-and-llm-response][I
want to change the formatting of the prompt and LLM response]]
+ -
[[#i-want-to-use-gptel-in-a-way-thats-not-supported-by-gptel-send-or-the-options-menu][I
want to use gptel in a way that's not supported by =gptel-send= or the options
menu]]
-
[[#doom-emacs-sending-a-query-from-the-gptel-menu-fails-because-of-a-key-conflict-with-org-mode][(Doom
Emacs) Sending a query from the gptel menu fails because of a key conflict
with Org mode]]
- [[#why-another-llm-client][Why another LLM client?]]
- [[#additional-configuration][Additional Configuration]]
- - [[#the-gptel-api][The gptel API]]
- - [[#extensions-using-gptel][Extensions using GPTel]]
- [[#alternatives][Alternatives]]
+ - [[#extensions-using-gptel][Extensions using GPTel]]
- [[#breaking-changes][Breaking Changes]]
- [[#acknowledgments][Acknowledgments]]
@@ -108,6 +108,8 @@ In =config.el=
:config
(setq! gptel-api-key "your key"))
#+end_src
+"your key" can be the API key itself, or (safer) a function that returns the
key. Setting =gptel-api-key= is optional, you will be asked for a key if it's
not found.
+
#+html: </details>
#+html: <details><summary>
**** Spacemacs
@@ -410,14 +412,23 @@ You can also call =gptel-end-of-response= as a command at
any time.
#+html: </details>
#+html: <details><summary>
-**** I want to change the prefix before the prompt and response
+**** I want to change the formatting of the prompt and LLM response
#+html: </summary>
-Customize =gptel-prompt-prefix-alist= and =gptel-response-prefix-alist=. You
can set a different pair for each major-mode.
+For dedicated chat buffers: customize =gptel-prompt-prefix-alist= and
=gptel-response-prefix-alist=. You can set a different pair for each
major-mode.
+Anywhere in Emacs: Use =gptel-pre-response-hook= and
=gptel-post-response-functions=, which see.
#+html: </details>
+#+html: <details><summary>
+**** I want to use gptel in a way that's not supported by =gptel-send= or the
options menu
+#+html: </summary>
+
+GPTel's default usage pattern is simple, and will stay this way: Read input in
any buffer and insert the response below it. Some custom behavior is possible
with the transient menu (=C-u M-x gptel-send=).
+For more programmable usage, gptel provides a general =gptel-request= function
that accepts a custom prompt and a callback to act on the response. You can use
this to build custom workflows not supported by =gptel-send=. See the
documentation of =gptel-request=, and the
[[https://github.com/karthink/gptel/wiki][wiki]] for examples.
+
+#+html: </details>
#+html: <details><summary>
**** (Doom Emacs) Sending a query from the gptel menu fails because of a key
conflict with Org mode
#+html: </summary>
@@ -504,11 +515,14 @@ Maybe, I'd like to experiment a bit more first. Features
added since the incept
Features being considered or in the pipeline:
- Fully stateless design (#17)
-** The gptel API
+** Alternatives
-GPTel's default usage pattern is simple, and will stay this way: Read input in
any buffer and insert the response below it. Some custom behavior is possible
with the transient menu (=C-u M-x gptel-send=).
+Other Emacs clients for LLMs include
-For more programmable usage, gptel provides a general =gptel-request= function
that accepts a custom prompt and a callback to act on the response. You can use
this to build custom workflows not supported by =gptel-send=. See the
documentation of =gptel-request=, and the
[[https://github.com/karthink/gptel/wiki][wiki]] for examples.
+- [[https://github.com/xenodium/chatgpt-shell][chatgpt-shell]]: comint-shell
based interaction with ChatGPT. Also supports DALL-E, executable code blocks
in the responses, and more.
+- [[https://github.com/rksm/org-ai][org-ai]]: Interaction through special
=#+begin_ai ... #+end_ai= Org-mode blocks. Also supports DALL-E, querying
ChatGPT with the contents of project files, and more.
+
+There are several more:
[[https://github.com/CarlQLange/chatgpt-arcana.el][chatgpt-arcana]],
[[https://github.com/MichaelBurge/leafy-mode][leafy-mode]],
[[https://github.com/iwahbe/chat.el][chat.el]]
*** Extensions using GPTel
@@ -517,15 +531,6 @@ These are packages that depend on GPTel to provide
additional functionality
- [[https://github.com/kamushadenes/gptel-extensions.el][gptel-extensions]]:
Extra utility functions for GPTel.
- [[https://github.com/kamushadenes/ai-blog.el][ai-blog.el]]: Streamline
generation of blog posts in Hugo.
-** Alternatives
-
-Other Emacs clients for LLMs include
-
-- [[https://github.com/xenodium/chatgpt-shell][chatgpt-shell]]: comint-shell
based interaction with ChatGPT. Also supports DALL-E, executable code blocks
in the responses, and more.
-- [[https://github.com/rksm/org-ai][org-ai]]: Interaction through special
=#+begin_ai ... #+end_ai= Org-mode blocks. Also supports DALL-E, querying
ChatGPT with the contents of project files, and more.
-
-There are several more:
[[https://github.com/CarlQLange/chatgpt-arcana.el][chatgpt-arcana]],
[[https://github.com/MichaelBurge/leafy-mode][leafy-mode]],
[[https://github.com/iwahbe/chat.el][chat.el]]
-
** Breaking Changes
- =gptel-post-response-hook= has been renamed to
=gptel-post-response-functions=, and functions in this hook are now called with
two arguments: the start and end buffer positions of the response. This should
make it easy to act on the response text without having to locate it first.
- [nongnu] elpa/gptel d77c8f37c5 057/273: gptel: Improve header-line-format, (continued)
- [nongnu] elpa/gptel d77c8f37c5 057/273: gptel: Improve header-line-format, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 6419e8f021 120/273: gptel: Add multi-llm support, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel aa50cbab70 123/273: gptel: Bump version, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel c97778d5a8 127/273: gptel: address byte-compile and checkdoc warnings, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 3e361323d5 137/273: Update available OpenAI GPT models to match API (#146), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 32dd463bd6 160/273: README: Mention YouTube demo, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 3ac5963080 168/273: README: Add instructions for Llamafile, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel bea31e33e2 175/273: gptel-ollama: Use default host in gptel-make-ollama, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel c6a07043af 179/273: gptel-kagi: Add support for Kagi FastGPT, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 3fb064a763 181/273: gptel: Better handling of read-only bufs, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel e79e386964 191/273: README: Move gptel-request to FAQ,
ELPA Syncer <=
- [nongnu] elpa/gptel a61fda4661 197/273: gptel-transient: better multi-line directive editing, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 226f8f0d90 208/273: gptel: Add customizable display-action (#216), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 8ba07d042c 210/273: gptel: Bump version, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel a32f4effe5 215/273: gptel-curl: Handle empty responses correctly, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel e5f54d1d09 229/273: gptel-anthropic: Modify order of request items, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel f529457bbe 232/273: gptel: Use visual-line-mode when ediff-ing, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 9eea4be5ed 245/273: gptel-transient: Fix gptel-menu definition bug (#265), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 6d3e4a99f5 236/273: gptel-transient: Rename additional-directive functions, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 5d069cfca8 243/273: gptel-anthropic: Simplify stream parser, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel b31c9be5e0 238/273: gptel-ollama: Adjust Ollama stream parser for libjansson, ELPA Syncer, 2024/05/01