Every LLM in Emacs, with gptel
Channel: karthink
Date: 2023-12-25

GPTel is a simple LLM client for Emacs.  It's always available but stays out of your way.

It supports ChatGPT/Azure, Ollama, Gemini, Kagi and more.

You can install it from MELPA. For more information: https://github.com/karthink/gptel

00:00 The pitch
00:27 Installation and basic usage
04:00 Fun with LLM system messages
04:27 Example: GPT-4 as a scientific calculator
05:47 Example: GPT-4 as a thesaurus
07:07 gptel's design
07:55 Redirecting input and output
08:04 Example: Redirect both to the minibuffer
08:32 Example: Redirect and continue a conversation
10:37 Design objective: be invisible, but always available 
11:04 Example: Fixing LaTeX in-place
12:08 Example: A just-in-time shell commands
13:09 Example: just-in-time Emacs discovery
13:38 Design objective: a small surface area
13:57 Two kinds of consistency: external and internal interface
14:13 Example: Multi-LLM demo
15:53 Design objective: Focus on text
16:46 Commonly requested behaviors, gptel-request
17:47 Sign-off

Since I always get questions about the visuals:
Emacs theme: modus-operandi
Fonts: Iosevka Comfy Motion (monospace), Merriweather (Serif)
Other packages used: spacious-padding, olivetti, popper