Dan Shipper 📧 Profile picture
Mar 18, 2023 28 tweets 8 min read Read on X
Let's see if GPT-4 can build ChatGPT in 10 prompts or less:
Note: I'm going to do this live, I have no idea if this is going to work. Wish me luck 🫡
PROMPT 1:

We're asking it to build a React component for a chatbot: Image
Here's the response, it looks pretty good! ImageImage
PROMPT 2:

Now we'll ask it to write the HTML file that includes the React component, and style it. I asked it for dark mode–let's see how it does 😅 Image
Here's the response: ImageImage
As you can see, it's asking me to include an index.js file...but it hasn't yet told me what that is. Let's use a prompt on that!
Here's its response: ImageImage
It's recommending I use the create-react-app to start the project, which makes me a bit nervous but we'll give it a shot! Image
I'm creating the React app now: Image
AND WE HAVE A CHATBOT!

It's client-side only for now, but you can send messages and everything :) Image
PROMPT 3:

Okay now we're cooking! We need a Flask server to handle the chat requests from the client. When it gets a chat request it should send it to GPT-4 for a completion. I'm literally going to paste in the GPT-4 API docs for reference.

Let's see what it can do! Image
Here's the response. Looks good!

I'm going to implement this (with a few minor modifications) and see what happens... Image
Our server is up and running!!! Image
Okay, we ran into a minor problem. Our server and client are hosted at different addresses—so when I make POST requests I get a Cross Origin error: Image
PROMPT 4:

Let's ask GPT-4 to fix the CORS error! Image
Here's the response. Seems reasonable! I'll report back... Image
Okay I went back and forth a bit on the CORS issue until it finally found the right modification for my app.py file. Not counting that as a prompt...it's sort of a side quest conversation. But...it fixed it!
Now, when I type a message it hits my chat server! Image
But there's a problem...when I send the request to GPT-4 it returns an error.

It looks like for some reason we're not actually sending the chat transcript to GPT-4. Not sure why...I'm going to step through the code Image
Okay so it looks like for some reason the client side isn't actually sending the chat transcript to the server.

I wonder why that is... Image
OMFG IT WORKS Image
For some reason it works on the second message, but not the first.

Going to have to ask GPT-4 why that is, and see if it can fix it...
PROMPT 5:

I asked it why the first message doesn't arrive and it figured it out! Image
It worked! It worked! It worked! Image
This was shockingly, crazily, incredibly easy. Image
I actually also learned something...I never would've used the create-react stuff on my own. I would've rolled it myself.

But it's quite good! Image
Now...let's see if I can get my ChatGPT clone to create another ChatGPT clone in 10 prompts or less... 👿 Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Dan Shipper 📧

Dan Shipper 📧 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @danshipper

Apr 16
o3 is out and it is absolutely amazing!!

i've been playing with it for a week or so and it's already my go-to model. it's fast, agentic, extremely smart, and has great vibes.

some of my top use cases:

- it flagged every single time I sidestepped conflict in my meeting transcripts
- it spun up a bite‑size ML course that it pings me about every morning
- it found a stroller brand from one blurry photo
- it coded a new custom AI benchmark in record time
- X‑rayed an Annie Dillard classic and found writing tricks I’d never noticed before
- it even analyzed @every’s org chart to tell me what we’ll be good at shipping, and what our weaknesses are

my full review is on @every now!Image
Read 9 tweets
Apr 10
ChatGPT just got an INSANE new memory update.

It remembers things about you between chats, in a sophisticated and intelligent way. Best prompt to try?

“Tell me some unexpected things you remember about me” Image
Image
Image
Read 8 tweets
Mar 6
Now that computers can do squishy, intuitive thinking we’re moving beyond our obsession with rationalism.

It’s why everyone in AI talks about vibes and big model smell—we need something else to describe the level of complexity computers can handle now.
The predominant metaphor for business and technology in the 2010s was science. That’s why we used words like hypothesis, theory, and feedback loops.

Now that we’re using words like vibes, the metaphor is shifting to art.
The shift from science to art implies something else;

In the 2010s startups needed to solve a well-defined problem, to find the “truth” about a customer or a market. This is all very science-y.

If the new metaphor for startups is art…then startups should pursue beauty, not truth.
Read 5 tweets
Jan 26, 2024
HOLY SHIT they built it Image
I wrote about this as an idea in December. Can't believe it happened so soon! Image
Also wrote about something like this in November: Image
Read 6 tweets
Jan 18, 2024
David Perell (@david_perell) is one of the best known internet writers of his generation.

@ChatGPTapp has become a go-to tool in his arsenal for creating great work. I dove deep with him on how he uses ChatGPT for:

- Doing deep reading of old books
- Finding anecdotes that spread
- Better understanding his taste
- Finding his heroes
- Understanding his blind spots as a leader
- Unpacking the strategy of his business

It was one of the deepest and most inspiring episodes we’ve ever done. And it's the first one we've ever recorded in person!

Watch below.

-----

Timestamps:
Intro 00:53
Finding and understanding his heroes 13:42
Understanding his personality and leadership style 19:14
Who does David work well with? 25:53
Workshopping The New York Times’s business strategy 36:52
Why ChatGPT is incredible at diversity, accessibility, and speed 52:54
Bringing old books like Moby Dick to life with DALLE 58:50
Using ChatGPT for deep textual analysis 1:06:29
ChatGPT for writing anecdotes that spread 1:21:04
Conversations with ChatGPT as food and drink for the soul 1:25:55
@david_perell @ChatGPTapp Watch on YouTube:
Read 4 tweets
May 5, 2023
I run a media company, and I love writing. So it’s bittersweet to write this, but here it is:

AI is going to fundamentally change media in all sorts of ways over the next five years...
Specifically, I think it will:

- Automate commodity content (like summaries)
- Unbundle research from narrative
- Write previously unwritten stories

Let me explain..
1/ Automating commodity content

Media companies monetize creativity, but the creative act is inherently unpredictable. Most of the media business is about looking for ways to de-risk creativity
Read 20 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(