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

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

Gavin Freeborn

Gavin Freeborn

Күн бұрын

Пікірлер: 64
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
​@@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 2 жыл бұрын
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.
@nevoyu
@nevoyu 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
@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.
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
Let me know what you use ChatGPT for? If you haven't used it before do you think you will use it now?
@ИванИванов-й1ж3ю
@ИванИванов-й1ж3ю 8 ай бұрын
Look's very interesting. Thanks for this video!
@FLMKane
@FLMKane 2 жыл бұрын
Emacs is the thermonuclear text editor With chatgpt it's now the supernova text editor!
@MathiasDahl
@MathiasDahl 2 жыл бұрын
Great stuff! :)
@augustinemavor-parker9355
@augustinemavor-parker9355 2 жыл бұрын
this is awesome
@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). 🙂
@maxreuv
@maxreuv 2 жыл бұрын
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 2 жыл бұрын
That's so they can alert the FBI and DOJ if you talk to it about stuff that's a little too spicy.
@jorgegomezabrante8780
@jorgegomezabrante8780 2 жыл бұрын
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 2 жыл бұрын
Excalidraw (think I spelled that right)
@judef-ii58
@judef-ii58 2 жыл бұрын
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 2 жыл бұрын
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
@sumanth3036
@sumanth3036 Жыл бұрын
Will a tutorial be possible about how you made this?
@lrdass
@lrdass 2 жыл бұрын
Sorry about the not very related question - but which is the drawing program you've used? Very nice frontend for chatgpt! kudos!
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
I used excalidraw
@auntiecarol
@auntiecarol 2 жыл бұрын
@@GavinFreeborn "Excalidraw" is an awesome prog name! So much better than the venerable "MyPaint" that I use.
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
@@auntiecarol I used mypaint in the past. Really nice for drawing just not the greatest for quick notes unfortunately.
@TheTxellenne
@TheTxellenne 11 ай бұрын
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?
@PeterPrevos
@PeterPrevos 2 жыл бұрын
How can I get the callback to insert the response at point? I want to ask non-code questions as a research assistant.
@jonghyeonyeo612
@jonghyeonyeo612 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
@@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 2 жыл бұрын
@@notjustsilicon Just resolved this. Sorry for the delay, vacation has gotten a little in the way
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
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
@akojic5486
@akojic5486 2 жыл бұрын
👏🏻👏🏻
@wxjeacen
@wxjeacen 2 жыл бұрын
Can you share your code with a git repo?
@Argleton-Ghoti
@Argleton-Ghoti 2 жыл бұрын
wow u are super man
@Danny-we4vz
@Danny-we4vz 2 жыл бұрын
Annnnd it’s not gonna be free anymore in a few days…
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
Awe really, that's a shame :(
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
@@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 2 жыл бұрын
@@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 2 жыл бұрын
@@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.
@ivymuncher
@ivymuncher 2 жыл бұрын
Who needs chatgpt I have M-x doctor
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
I was just joking about M-x doctor the other day 😅. Emacs has AI before it was cool
@foobars3816
@foobars3816 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
Doing a little research will also show that this is how most if not all existing attempt are achieving this.
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
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 2 жыл бұрын
@@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 2 жыл бұрын
@@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 2 жыл бұрын
I used to love ur videos but the thumbnails are getting dum`m`er by the day
@GavinFreeborn
@GavinFreeborn 2 жыл бұрын
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 2 жыл бұрын
There is nothing wrong with the thumbnail. What's wrong with you?
5 Reasons I Love Emacs Orgmode
15:43
Gavin Freeborn
Рет қаралды 13 М.
LEARN EMACS LISP - Mostly The Strange Parts
29:22
Gavin Freeborn
Рет қаралды 18 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Want To Rewrite Your Configs In Org-Mode? It's Easy!
19:42
DistroTube
Рет қаралды 26 М.
10X Your Code with ChatGPT:  How to Use it Effectively
17:14
Dave's Garage
Рет қаралды 352 М.
Interview With Prot - Philosopher, Writer and Emacs Contributor
1:07:50
Gavin Freeborn
Рет қаралды 4,2 М.
Learn Emacs Lisp in 30 Minutes
30:22
Gavin Freeborn
Рет қаралды 12 М.
REAL Uses of ChatGPT As A Developer | 12 Practical Examples
21:31
Travis Media
Рет қаралды 79 М.
Amazing integration of LLM into any workflow using GPTEL and Emacs
28:30
Greg Grubbs - Tech and History
Рет қаралды 2,9 М.
Why Are Lisp Macros So Great!?
16:28
Gavin Freeborn
Рет қаралды 17 М.
Every LLM in Emacs, with gptel
17:56
karthink
Рет қаралды 19 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН