Morfternight - Morfternight #77: Hands-on with GPT-4
Hello! I am Paolo Belcastro. You are reading this because you subscribed to Morfternight, the weekly newsletter about leadership, product management, distributed teams, and anything that tickles our brains. 👇 tl;drToday I am trying something special. Before diving in, I want to ask you a favor: if writing code assisted by an AI is not your cup of tea, that’s fine and understandable, but don’t unsubscribe just yet, this will be the only time it will happen in Morfternight, and from next week we’ll be back to our usual format. I’d like you to tell me in the comments, chat, or reply to this email. Conversely, if you love the idea of GPT-4 hands-on sessions, let me know too. They won’t live in Morfternight, but I’ll send these separately if enough readers are interested. 🤩 Welcome to the eight new Morfternighters who joined us last week. 📷 Photo of the weekSan Cataldo, Palermo - More Photos👋 Good Morfternight!As I got access to GPT-4, the new iteration of the OpenAI tool, and read that it will accept images as input, I decided I wanted to try and write a plugin for the blog that would leverage the new ability. I publish photos regularly, but I never take the time to write proper descriptions of them for screen readers. I feel guilty because it makes my site less accessible to people with sight impairments, so I thought I might fix that by asking GPT-4 to describe my images. Now, I haven’t written any code in years, so to speed the process up, I also decided to use GPT-4 to do that part. It took a few hours, but it worked pretty smoothly in the end. Important note: along the way, I learned that while GPT-4 will accept images soon, it doesn’t just yet. So the resulting plugin is still useless, but we’ll finalize it as soon as OpenAI adds the option to send images as input. I’ll share a few tips I learned along the way and the full transcript of the ChatGPT session and the resulting code, but before we dive into that, I also asked ChatGPT to summarize what we did in its own words. Here’s what ChatGPT has to say (unedited):
🗺️ A few tips I learned along the wayDon’t try to go straight to the final version. Instead, start simple and build on the initial output in a few iterations. This will make it easier to explain, debug, and understand. Every once in a while, for no apparent reason, ChatGPT stops responding in the middle of a message. When that happens, the magic prompt to continue without skipping a beat is:
ChatGPT tends to ask you to make changes to the code previously written instead of giving you the entire modified file each time. That would typically be ok, except that ChatGPT sometimes takes a different route, and the changes it suggests don’t entirely fit. So when that happens, just ask it to give you the complete file again, and it will. Similarly, there are times when after jumping a few times between files, I felt ChatGPT was losing track of where we were. In those cases, I just told ChatGPT I would provide the current state of the entire file and asked to modify that. It worked like a charm. At the very beginning, we encountered a bug. After I checked the console log for errors and provided the output to ChatGPT, it identified the problem and said the following:
That was fine, and the error was fixed, but it did it again a couple of times before remembering to avoid the problem. It’s a general feeling I had while working on this project: ChatGPT remembers the main points immediately but needs a few repetitions before remembering small details. 🤖 Full transcript and resultsYou can access the full transcript of the session here. Frankly, even if you are not into coding or writing WordPress plugins, it’s worth a read to see how smooth the process is. Consider that I did not write a single line of PHP, CSS, or Javascript. I only copied and pasted what ChatGPT shared with me. The final output comprises five files placed in a folder named Disclaimer: Use a test site, not a production one. I do not guarantee that this code won’t break your site. It works on mine, but a software engineer hasn’t reviewed it. So it’s a proof of concept only.
👨🏻💻 From the blog, last weekIt was a quiet week for the blog, so there is nothing to see here today ¯\_(ツ)_/¯ That's it for today!I write and publish photos on paolo.blog If you know someone who could enjoy Morfternight, share it with them! 🤩 Cheers! |
Older messages
Morfternight #75: ChatGPT understanding you is a big deal.
Sunday, March 12, 2023
The one about the silences, not the notes.
Morfternight #75: Cruising across the Mediterranean Sea
Sunday, March 5, 2023
The one with an annotated map.
Morfternight #74: Focus, Work, Wait, Ride
Sunday, February 26, 2023
The one where we share more than one photo.
Morfternight #73: As an AI language model...
Monday, February 20, 2023
The one where we make an announcement.
Morfternight #72: Distributed vs. Remote
Sunday, February 12, 2023
The one where we discover how the unthinkable happened.
You Might Also Like
🤝 Biz Buyers, you’ve been waiting YEARS for this…
Tuesday, December 3, 2024
Join Us: The Ownership Revolution Begins on Dec 12. Main Street Is Calling — Will You Answer? Biz Buyers, If you're reading this, good chance this has been you the last few months: Well, guess what
Prevent AI hallucinations
Tuesday, December 3, 2024
Use recursive prompting ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
The Famous Symbol with the Hidden N and D
Tuesday, December 3, 2024
Give peace some flags
🧙♂️ $25K giveaway
Tuesday, December 3, 2024
Enter for a chance to win! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
• Book Promo Super Package for Authors • FB Groups • Email Newsletter • Tweets • Pins
Tuesday, December 3, 2024
Newsletter & social media ads for books. Enable Images to See This "ContentMo is at the top of my promotions list because I always see a spike in sales when I run one of their promotions. The
🧙♂️ [6 HOURS LEFT] Your $500 BDW discount code expires at midnight
Tuesday, December 3, 2024
friend, this is your last chance… ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
BUMP doors closing (Cyber Monday)
Monday, December 2, 2024
Hi! Super quick reminder → the Copywriting Course Cyber Monday deal is about to go away… 50% off a year of training and personalized help, plus two free extra months. Our most ridiculous deal ever!
Can I answer any questions?
Monday, December 2, 2024
Last chance for the Supercharge Your Year Bundle ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
In case you missed Black November💥
Monday, December 2, 2024
We are extending the offer ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Cyber Monday Book Deals Are Here! KU ~ Free ~ 99c ~ Kindle & Paperback Books
Monday, December 2, 2024
Enjoy your holiday with some good reading! Fiction and Non-fiction Book Deals for You!