andras-simonyi/citeproc-el@f36650536b -> andras-simonyi/citeproc-el@f5217b9fdb emacs-citar/citar@5ef097beba -> emacs-citar/citar@75a85d8d86 emacs-lsp/dap-mode@b977566657 -> emacs-lsp/dap-mode@c81014ccc3 emacs-lsp/helm-lsp@54926afd10 -> emacs-lsp/helm-lsp@95f21f3f67 emacs-lsp/lsp-ivy@3ee14a24bb -> emacs-lsp/lsp-ivy@2927cbc776 emacs-lsp/lsp-mode@65a414ddeb -> emacs-lsp/lsp-mode@c74a723870 emacs-lsp/lsp-ui@bbb1aa0192 -> emacs-lsp/lsp-ui@030d369603 emacs-straight/dape@411e4b6126 -> emacs-straight/dape@81ee231de1 emacs-straight/eglot@a8cb16b833 -> emacs-straight/eglot@d2f34e5ce4 emacsorphanage/quickrun@bae8efb8c5 -> emacsorphanage/quickrun@7132464986 jacktasia/dumb-jump@42f97dea50 -> jacktasia/dumb-jump@21545d3b86 karthink/gptel@af821efe63 -> karthink/gptel@40f6950e80 mohkale/consult-eglot@2816f8aad7 -> mohkale/consult-eglot@d8b444aac3 purcell/envrc@510807ae96 -> purcell/envrc@48a2ee6a4d
: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?