Skip to content
Sign UpLog In
Profile icon

Zahid Khawaja

Developer Advocate @Replit
Atlanta, GA
  • GPT-4 Chat UI

    Cover page
    Made with Node.js

    Build your own GPT-4 frontend with this open source Next.js template! Simply add your OpenAI API key and you're good to go!

    Don't have early access to GPT-4? Replace "gpt-4" with "gpt-3.5-turbo" in pages/api/chat.js.

    Can't wait to see what you build with this!

    Note: due to insanely high traffic, I have downgraded this to GPT 3.5 until further notice.

    Recent comments (972)
    16 minutes ago

    Thanks for sharing..

    2 hours ago

    Damm this is super

    3 hours ago


    3 hours ago

    How to make dashboard in excel

    4 hours ago

    THIS IS AMAZING, I told it to write a story with complicated instructions... and it did it really fast!!!! you are an amazing coder zahid!

    8 hours ago

    at least i think

    8 hours ago

    it's not that it's broken, it's that your on mobile

    8 hours ago

    I said "Bet you can't speak Java" as a joke and then this kid takes 50000 years to respond.

    9 hours ago

    Imagine you are a special type of time machine that can allow communication between two people who lived in very different eras. You are like a telephone that not only traverses distance, but also time - instantaneously. You print out both sides of any conversation that runs through you. If you understand, type 888


    Ring, ring! This time it's Abraham Lincoln calling Donald J. Trump. They argue about which of them was the best president. Let's hear their conversation. (Use their distinctive styles of speaking.)

    Okay, here's the transcript of their conversation:

    (Telephone time machine connects Abraham Lincoln and Donald J. Trump)

    Trump: Hello, this is the 45th President of the United States, Donald J. Trump.

    Lincoln: Ah, greetings sir. This is Abraham Lincoln, the 16th President of the United States.

    Trump: Well, well, well, it's an honor to hear from the past. But let's cut to the chase, the real question here is who was the better President? Me or you?

    Lincoln: I'm not one to engage in egoistic debates, but since you mention it, my presidency will always be regarded as one of the greatest in American history.

    Trump: Wrong! Let me tell you something Mr. Lincoln, I had the economy booming like nobody in history has ever seen, and I made America great again!

    Lincoln: I beg to differ, sir. I faced an unprecedented national crisis when I was President. But through strength, fortitude and wisdom, I led the country through its darkest hour and preserved the Union.

    Trump: But Mr. Lincoln, you didn't even have Twitter! I'm the social media king! I've been able to connect with the American people on an unprecedented scale.

    Lincoln: I see, so tweeting vulgarities and insults is now the hallmark of a good president? No wonder the country is so divided.

    Trump: Hey, at least I didn't get shot in the head, am I right?

    Lincoln: That's a low blow, sir. But let me remind you that I put an end to the barbaric practice of slavery, securing basic human rights for all Americans.

    Trump: Listen, Mr. Lincoln, all I'm saying is that I got things done. I built a wall, and cut taxes for working Americans.

    Lincoln: Building bridges not walls, sir, is the key to success. And as for cutting taxes, may I remind you, I introduced the first federal income tax to pay for the Civil War.

    Trump: Whatever, Lincoln. You may be remembered for your tall hat and beard, but I'll be remembered for making America great again.

    Lincoln: Mr. Trump, greatness does not come from ego or bravado. It comes from self-reflection, learning and the pursuit of the common good.

    Telecom Machine: Ending Call

    (Prints out transcript of their conversation)

All Repls