4 ms·
This is great for what it does, but I want a more generic LLM integration that can do this and everything else LLMs do. For example, one key stroke could be "c
by dack 3y ago
This is great for what it does, but I want a more generic LLM integration that can do this and everything else LLMs do.
For example, one key stroke could be "complete this code", but other keystrokes could be:
- send current buffer to LLM as-is
- send region to LLM
- send region to LLM, and replace with result
I guess there are a few orthogonal features. Getting input into LLM various ways (region, buffer, file, inline prompt), and then outputting the result various ways (append at point, overwrite region, put in new buffer, etc). And then you can build on top of it various automatic system prompts like code completion, prose, etc.
- turboponyy 3y agoFrom elsewhere in this thread: > Also worth checking out for more general use of LLMs in emacs: https://github.com/karthink/gptel https://github.com/karthink/gptel
- jart 3y agoYou're the third person in the last 40 minutes to post a comment in this thread sharing a link to promote that project. https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=story%3A38822164&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que... It must be a good project.
- klibertp 3y agoIt is, but I guess the reason it's mentioned so much right now is that the author posted a pretty convincing video a few days ago to Reddit: https://youtu.be/bsRnh_brggM https://youtu.be/bsRnh_brggM (post: https://old.reddit.com/r/emacs/comments/18s45of/every_llm_in_emacs_with_gptel/ https://old.reddit.com/r/emacs/comments/18s45of/every_llm_in...) From what I see, gptel is more interested in creating the best and least intrusive interface - it doesn't concern itself too much about which model you're using. The plan is to outsource the "connection" (API, local) to the LLM to another package, eventually.
- karthink 3y ago> Getting input into LLM various ways (region, buffer, file, inline prompt), and then outputting the result various ways (append at point, overwrite region, put in new buffer, etc). gptel is designed to do this. It also tries to provide the same interface to local LLMs (via ollama, GPT4All etc) and remote services (ChatGPT, Gemini, Kagi, etc).
- WhatIsDukkha 3y agoThank you for gptel, its really what I had been looking for in emacs llm. Great work.
- karthink 3y agoGlad it's useful.
- ParetoOptimal 3y agoGptel as others mentioned, but I can't believe no one linked the impressive and easy to follow demo: https://www.youtube.com/watch?v=bsRnh_brggM https://www.youtube.com/watch?v=bsRnh_brggM Lowest friction llm experience I've ever used... You can even use it in the M-x minibuffer prompt.