NicolasPetton/pass@896696999d -> NicolasPetton/pass@7651389c52 Silex/docker.el@464105ed8b -> Silex/docker.el@91233a7c55 andras-simonyi/citeproc-el@d232616851 -> andras-simonyi/citeproc-el@f36650536b editorconfig/editorconfig-emacs@d2beb3ec2e -> editorconfig/editorconfig-emacs@f85ec9724b emacs-ansible/emacs-ansible@8474bd186b -> emacs-ansible/emacs-ansible@7385222a4f emacs-lsp/lsp-mode@3a96df0dd7 -> emacs-lsp/lsp-mode@65a414ddeb emacs-lsp/lsp-ui@a0dde8b52b -> emacs-lsp/lsp-ui@bbb1aa0192 emacs-straight/dape@1df7834306 -> emacs-straight/dape@411e4b6126 emacs-straight/eglot@6a9e0c76b9 -> emacs-straight/eglot@a8cb16b833 emacs-tree-sitter/elisp-tree-sitter@1c455b0953 -> emacs-tree-sitter/elisp-tree-sitter@caeb32e8a7 emacs-tree-sitter/tree-sitter-langs@59979a1f5c -> emacs-tree-sitter/tree-sitter-langs@9b7e508435 flycheck/flycheck-eglot@18d0c98695 -> flycheck/flycheck-eglot@0d7f0afc9b karthink/gptel@0a77446108 -> karthink/gptel@af821efe63 magit/magit@2f1ff91f12 (4.3.6) -> magit/magit@5b820a1d1e (4.3.8) magit/transient@f3f498aa15 (0.9.2) -> magit/transient@aa32e0d66c (0.9.4) meain/evil-textobj-tree-sitter@bce236e5d2 -> meain/evil-textobj-tree-sitter@4ca5dffbd3 nicolaisingh/saveplace-pdf-view@79e76562bc -> nicolaisingh/saveplace-pdf-view@dc1e0b28a5 purcell/envrc@cb5f6d2a42 -> purcell/envrc@510807ae96 zx2c4/password-store@b5e965a838 -> zx2c4/password-store@3ca13cd888 Close: #8453
:tools llm
Description unfold
This module integrates LLMs into Emacs for analyzing or generating code and text, powered by the gptel package. Out of the box, ChatGPT is the default backend, but it can talk to other LLMs given some configuration.
Maintainers
Module flags
This module has no flags.
Packages
- doom-package:gptel
- doom-package:gptel-quick
- doom-package:gptel-magit if doom-module::tools magit
Hacks
This module's hacks haven't been documented yet. Document them?
TODO Changelog
This module does not have a changelog yet.
Installation
Enable this module in your doom!
block.
An OpenAI API key, paid account, and enough credits to use it is required (if you use the OpenAI backend). To use this module with other LLMs, visit the Configuration section.
Usage
This module's usage documentation is incomplete. Complete it?
Check out gptel's usage documentation for details on how to use the package.
Doom exposes these keybinds for gptel's commands:
Keybind | Command | Description |
---|---|---|
<leader> o l a | cmd:gptel-add | Add text to LLM context |
<leader> o l e | cmd:gptel-quick | Explain item or selection |
<leader> o l f | cmd:gptel-add-file | Add file to LLM context |
<leader> o l l | cmd:gptel | Open gptel chat buffer |
<leader> o l s | cmd:gptel-send | Send text before (point) (or selection) |
<leader> o l m | cmd:gptel-menu | Open configuration menu for gptel |
<leader> o l r | cmd:gptel-rewrite | Rewrite, refactor, or change the selected region |
<leader> o l o | cmd:gptel-org-set-topic | Limit context to Org heading |
<leader> o l O | cmd:gptel-org-set-properties | Store gptel config as org properties |
This module also adds a "pre-generated message" option to magit-commit's transient menu. Alternatively, press M-g to generate a message in a commit buffer.
Configuration
This module's configuration documentation is incomplete. Complete it?
To use this module with only ChatGPT, you only need to set gptel-api-key
to your
OpenAI key. For other LLMs you'll need to call one of the gptel-make-*
functions
in an (after! gptel ...)
block. Examples of these calls can be found in gptel's
readme.
Troubleshooting
There are no known problems with this module. Report one?
Frequently asked questions
This module has no FAQs yet. Ask one?
TODO Appendix
This module has no appendix yet. Write one?