I Made a ChatGPT Like Client For Emacs - AND SO CAN YOU!!

  Рет қаралды 8,342

Gavin Freeborn

Gavin Freeborn

Күн бұрын

Пікірлер: 64
@GavinFreeborn
@GavinFreeborn Жыл бұрын
Disclaimer: This frontend used OpenAI's GPT-3 API not ChatGPT it's self. While this is great and free for those using the free trial there is a limit of $18 of credit. So far I have made 28 requests adding up to 0.94$. Do with that information as you like. Happy hacking!
@GeorgWilde
@GeorgWilde Жыл бұрын
Is there a possibility to implement the same for ChatGPT right now? I'm noob, but it seems to me that different frontends for ChatGPT can be and are developed even without the company Open AI providing API for that.
@dpx4029
@dpx4029 Жыл бұрын
​@@GeorgWilde you can, but you have to use playwright in headless mode to authenticate and then get the chat session id, i saw someone already did it in a Reddit post on the Emacs subreddit
@defnlife1683
@defnlife1683 Жыл бұрын
This man is single-handedly making lisp awesome for us normies!!
@pauleduard4772
@pauleduard4772 Жыл бұрын
This could get quite interesting with org-roam and building a second brain! Crossed my mind today. Made a chat-GPT3 account 3 days ago.
@GavinFreeborn
@GavinFreeborn Жыл бұрын
Let me know what you use ChatGPT for? If you haven't used it before do you think you will use it now?
@nevoyu
@nevoyu Жыл бұрын
I've been using ChatGPT for assistance with my D&D campaign setting. Feeding it with everything so far has been a chore but it's came in with some very good insights.
@GavinFreeborn
@GavinFreeborn Жыл бұрын
I hadn't even thought to use it for something like that. Very clever, what kind prompts do you give it if you don't mind me asking?
@nevoyu
@nevoyu Жыл бұрын
@Gavin Freeborn I started with a basic prompt of "tell me a story about an evil wizard who signed a pact to free a demon" Then just kept asking it for more details as we went.
@ИванИванов-й1ж3ю
@ИванИванов-й1ж3ю 4 ай бұрын
Look's very interesting. Thanks for this video!
@jorgegomezabrante8780
@jorgegomezabrante8780 Жыл бұрын
Great video! Very impressive! What is that program that you are using to draw/diagram with? Are you also using a draw pad or mouse?
@GavinFreeborn
@GavinFreeborn Жыл бұрын
Excalidraw (think I spelled that right)
@FLMKane
@FLMKane Жыл бұрын
Emacs is the thermonuclear text editor With chatgpt it's now the supernova text editor!
@maxreuv
@maxreuv Жыл бұрын
Great video, thank you for sharing! I wanted to take ChatGPT for a spin but was deterred by its requiring a phone number for the registration.
@Backstabbio
@Backstabbio Жыл бұрын
That's so they can alert the FBI and DOJ if you talk to it about stuff that's a little too spicy.
@AndersJackson
@AndersJackson Жыл бұрын
Something to remember is that AI, like ChatGPT, are designed to please the user. So, if it can't generate a correct answer, it will lie, which is called that it will Hallucinate. So code generated has to be checked and understood, so it will not generate faulty code. Basically ChatGPT and other services like it, is MSaaS (Man Splaining as a Service). 🙂
@augustinemavor-parker9355
@augustinemavor-parker9355 Жыл бұрын
this is awesome
@sumanth3036
@sumanth3036 Жыл бұрын
Will a tutorial be possible about how you made this?
@judef-ii58
@judef-ii58 Жыл бұрын
Thanks for this video. However, your config 7:31 is not available. Can you share how you configure chatgpt with emacs?
@judef-ii58
@judef-ii58 Жыл бұрын
I got this error: funcall-interactively: Wrong number of arguments: ((t) (prompt callback) "Query OpenAI with PROMPT calling the CALLBACK function on the resulting buffer. Returns buffer containing the text from this query" (interactive "^M") (chatgpt--query-open-api prompt #'(lambda (results) (save-current-buffer (set-buffer (get-buffer-create chatgpt-buffer)) (erase-buffer) (insert results) (funcall callback (current-buffer)))))), 1 Mark set
@lrdass
@lrdass Жыл бұрын
Sorry about the not very related question - but which is the drawing program you've used? Very nice frontend for chatgpt! kudos!
@GavinFreeborn
@GavinFreeborn Жыл бұрын
I used excalidraw
@auntiecarol
@auntiecarol Жыл бұрын
@@GavinFreeborn "Excalidraw" is an awesome prog name! So much better than the venerable "MyPaint" that I use.
@GavinFreeborn
@GavinFreeborn Жыл бұрын
@@auntiecarol I used mypaint in the past. Really nice for drawing just not the greatest for quick notes unfortunately.
@TheTxellenne
@TheTxellenne 7 ай бұрын
A silly question here, I will need a pro (or paid) open-ai account to pipeline interactions between my emacs activities and my chat-gpt, won't I?
@MathiasDahl
@MathiasDahl Жыл бұрын
Great stuff! :)
@jonghyeonyeo612
@jonghyeonyeo612 Жыл бұрын
I just got an error like this. error in process filter: condition-case: An error caused by a failure to parse an OpenAI API Response: wrong-type-argument, stringp, nil error in process filter: An error caused by a failure to parse an OpenAI API Response: wrong-type-argument, stringp, nil
@GavinFreeborn
@GavinFreeborn Жыл бұрын
I'll try to take a look at this in the morning. The code may be out of sync with what I have. Thanks for pointing this out
@notjustsilicon
@notjustsilicon Жыл бұрын
@@GavinFreeborn also getting errors like that. and when trying to use the prompt it gives an arity error (missing the callback). but great video, thanks for making them!
@GavinFreeborn
@GavinFreeborn Жыл бұрын
@@notjustsilicon Just resolved this. Sorry for the delay, vacation has gotten a little in the way
@GavinFreeborn
@GavinFreeborn Жыл бұрын
Should be resolved now if it's the issue I expect. Likely just due to the prompt not functioning properly when used interactively. Sorry about that
@PeterPrevos
@PeterPrevos Жыл бұрын
How can I get the callback to insert the response at point? I want to ask non-code questions as a research assistant.
@akojic5486
@akojic5486 Жыл бұрын
👏🏻👏🏻
@oooexist
@oooexist Жыл бұрын
wow u are super man
@wxjeacen
@wxjeacen Жыл бұрын
Can you share your code with a git repo?
@ivymuncher
@ivymuncher Жыл бұрын
Who needs chatgpt I have M-x doctor
@GavinFreeborn
@GavinFreeborn Жыл бұрын
I was just joking about M-x doctor the other day 😅. Emacs has AI before it was cool
@Danny-we4vz
@Danny-we4vz Жыл бұрын
Annnnd it’s not gonna be free anymore in a few days…
@GavinFreeborn
@GavinFreeborn Жыл бұрын
Awe really, that's a shame :(
@GavinFreeborn
@GavinFreeborn Жыл бұрын
@@zion4872 can't find it either. It does say they will eventually have to make it paid due to compute costs but they haven't said anything about when it's gonna happen from what I can find
@Danny-we4vz
@Danny-we4vz Жыл бұрын
@@GavinFreeborn I recall seeing on GPTChat’s page that it would be available til the end of this month, which means we will either not able to use it next month, or have to pay to use it. Both would mean it’s not going to be freely available anymore :(
@Vaslovag
@Vaslovag Жыл бұрын
@@GavinFreeborn In my account I read under "usage" that they gave me a free trial worth USD 18 and for a maximum of 3 months.
@foobars3816
@foobars3816 Жыл бұрын
Why lie? This isn't ChatGPT, it's the completions API by open AI, not ChatGPT. I can't believe you made a 16 minute video and didn't mention that once! Such clickbait.
@GavinFreeborn
@GavinFreeborn Жыл бұрын
Is this not nearly identical to how ChatGPT is working it's using the same model and engine? I think the only missing features are the sustained sessions which I understand others considering important. This is however completely possible to do via the api. I even tested it against many of the examples getting nearly identical responses to what ChatGPT was giving. My intention was not to mislead people.
@GavinFreeborn
@GavinFreeborn Жыл бұрын
Doing a little research will also show that this is how most if not all existing attempt are achieving this.
@GavinFreeborn
@GavinFreeborn Жыл бұрын
If you could expand on this I'd appreciate it since I don't want to be spreading misinformation. On the topic of not mentioning this I explain this in the "How it all works" section.
@damiengonot6787
@damiengonot6787 Жыл бұрын
@@GavinFreeborn Loved the video and will definitely try it out but since this is calling the OpenAI API, each request incurs a tiny cost right? It's not entirely free like ChatGPT is. Unsure what foobars' concerns were but to me this is the main difference between ChatGPT and OpenAI's completions API.
@GavinFreeborn
@GavinFreeborn Жыл бұрын
@@damiengonot6787 ya that's a fair concern. I think that would have been worth mentioning. Especially when it comes to the eventual cost of you go over the free trial. I've made a lot of requests so far especially for testing and have yet to hit a dollar let alone 18. Thanks for mentioning this I'll be sure to make a disclaimer since this was definitely an oversight on my end.
@thengakola6217
@thengakola6217 Жыл бұрын
I used to love ur videos but the thumbnails are getting dum`m`er by the day
@GavinFreeborn
@GavinFreeborn Жыл бұрын
Sorry you feel that way. Honestly I didn't think viewers would enjoy a video any less due to a thumbnail. I really just go for what might catch someone's eye. I'll try to make them more clever. If that's what people want
@nope9310
@nope9310 Жыл бұрын
There is nothing wrong with the thumbnail. What's wrong with you?
5 Reasons I Love Emacs Orgmode
15:43
Gavin Freeborn
Рет қаралды 11 М.
M-x Compile: A Deep Dive into Compiling Code with Emacs
15:46
Gavin Freeborn
Рет қаралды 4,5 М.
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Unleash The REPL With Sly
14:45
Gavin Freeborn
Рет қаралды 12 М.
The KEY To Thinking Like a Programmer (Fix This Or Keep Struggling)
10:39
Three HUGE Mistakes New Emacs Users Make
13:28
DistroTube
Рет қаралды 95 М.
LangChain and Ollama: Build Your Personal Coding Assistant in 10 Minutes
20:43
AI Software Developer
Рет қаралды 6 М.
10X Your Code with ChatGPT:  How to Use it Effectively
17:14
Dave's Garage
Рет қаралды 340 М.
The 6 Emacs Settings Every User Should Consider
15:41
System Crafters
Рет қаралды 36 М.
Every LLM in Emacs, with gptel
17:56
karthink
Рет қаралды 12 М.
Double Your Productivity With Emacs Org-Mode
24:15
Gavin Freeborn
Рет қаралды 8 М.
My Emacs Workflow - As a Software Engineer and Student
14:02
Gavin Freeborn
Рет қаралды 26 М.
Amazing integration of LLM into any workflow using GPTEL and Emacs
28:30
Greg Grubbs (kodegen)
Рет қаралды 1,8 М.