Build and Deploy Your Own ChatGPT AI App in JavaScript | OpenAI, Machine Learning

곡유
μ†ŒμŠ€ μ½”λ“œ
  • κ²Œμ‹œμΌ 2024. 04. 27.
  • With an elegant user interface that resembles the ChatGPT app, communication with advanced GPT3 model API, and most importantly, the ability to ask the AI for help regarding JavaScript, React, or any other programming language, giving it code and translating it to another programming language, and much more, this CodeGPT is the best AI-based web application that you can currently find on KRplus.
    ⭐JS Mastery Pro - jsmastery.pro/youtube
    πŸ“š Materials/References:
    GitHub Code (give it a star ⭐) - github.com/adrianhajdin/proje...
    Assets - drive.google.com/file/d/1Rhtf...
    Styles - gist.github.com/adrianhajdin/...
    If you're experiencing 401, 429, or similar issues, here are some potential solutions:
    - Proper API key from OpenAI: It's possible that you are not using a valid API key from OpenAI. You can get an API key by visiting beta.openai.com/account/api-keys.
    - Free credits offered by OpenAI: If you are using the free credits offered by OpenAI to use their models, you can check your usage at beta.openai.com/account/usage. If you have used up your free credits, you can check the pricing and upgrade your account at openai.com/api/pricing/.
    - Proper server deployment: Make sure you use the deployed link from Render at render.com/. If you are unsure how to deploy the project, follow the steps mentioned in the video.
    - After successfully deploying the link, make sure to paste the link in the script file of the client and push it to GitHub. This will allow Vercel to detect and deploy the application properly. Also, please note that the server link used in the Codex repository shared on GitHub has used all of its credits, so it will throw a 429 error and will not work. You will need to use your own server link by deploying it on Render or using another hosting service.
    πŸ›Got stuck? Get your bugs resolved immediately - / discord
    🐦 Follow us on Twitter: / jsmasterypro
    πŸ–ΌοΈ Follow us on Instagram: / javascriptmastery
    πŸ’Ό Business Inquiries: contact@jsmastery.pro
    Time Stamps πŸ‘‡
    00:00:00 Intro
    00:02:29 Demo
    00:04:54 Setup
    00:11:26 ChatGPT Frontend
    00:25:58 OpenAI Server
    00:39:05 Connecting client and server
    00:50:57 Deployment

λŒ“κΈ€ • 1.6K

  • @mikhail5002
    @mikhail5002 λ…„ μ „ +77

    absolutely amazing! Would love an extended tutorial about creating a complete webapp with registration, login, payment processing, customer area and all the other things to make a full product! The quality of your tutorials is mind-blowing!

    • @gregcharles92
      @gregcharles92 λ…„ μ „ +4

      My solution was to this application behind a service like webflow, or Editor X, or even some of the supabase build templates that has user login functionality

    • @denniszenanywhere
      @denniszenanywhere λ…„ μ „ +1

      @@gregcharles92 I’m curious to know how to do this on webflow. How?

    • @yonathanrodriguez4050
      @yonathanrodriguez4050 λ…„ μ „ +1

      @@gregcharles92 show us how you did it lol

    • @FahadKiani1
      @FahadKiani1 λ…„ μ „

      +1

  • @harsh-alashi
    @harsh-alashi λ…„ μ „ +3

    Just completed the JavaScript course provided by you and now this project will act as good way to learn JavaScript in more advance way. Thank You Adrian
    I will surely start working on this ASAP

  • @a-factoracademy
    @a-factoracademy λ…„ μ „

    Wow, this is no doubt the best channel on KRplus at the moment for web development especially with the incorporation with JavaScript. You are the best! Thank you thank you for the journey you're taking me. I'm seriously following you up trying to master every line of the code and really it's working πŸ™πŸΎπŸ‘πŸΎπŸ‘πŸΎ

  • @infinity_cape
    @infinity_cape λ…„ μ „ +1

    Thank You Adrian , for someone who hasn't started out with react yet , this a great Vanilla J.S project.Completed it in one sitting.

  • @Andrew-Tsegaye
    @Andrew-Tsegaye λ…„ μ „ +53

    By the way, I've told you to build a stunning app using vanilla JS and you made it here. Thanks for accepting my suggestion and building a stupendous app with vanilla JS!πŸ™πŸ™

  • @derekprieur5258
    @derekprieur5258 λ…„ μ „ +57

    Great video as usual Adrian! I personally prefer React projects but a vanilla JS one once in a while is a good change of pace πŸ‘

  • @Xeroform
    @Xeroform λ…„ μ „ +1

    I’ve been improving on my own gpt3 and 3.5 turbo models… ported to mobile terminal on my iPhone: It’s so neat having the AI in a window that I can leave on and pick up whenever without having to log back in, no waiting in line from congestion. Using the API is the way to go… and they added images to the completions API I think today or yesterday. πŸ”₯

  • @meheraabarvy4134
    @meheraabarvy4134 λ…„ μ „ +1

    You provide what we need in time. This is phenomenal. Thanks for your great effort.

  • @moh_idreesmohammadi9118
    @moh_idreesmohammadi9118 λ…„ μ „ +54

    Seriously, it was phenomenal. For once in my life I followed the tutorial like watching an action movie and got extremally interested in AI projects. Thank You so much Sir!

  • @javakodingdotcom
    @javakodingdotcom λ…„ μ „ +7

    Wow sir you are always updated with the latest news, great tutorial. Thank you so much πŸ™

  • @avinashlakhiani
    @avinashlakhiani 11 κ°œμ›” μ „

    Loved the course, very practical and easy to follow. Great hands on experience and I was able to finish it in one sitting.

  • @philq01
    @philq01 λ…„ μ „

    This is the best tutorial I've seen on using the OpenAI API. Thank You.!

  • @hashinthaubhayandika9290
    @hashinthaubhayandika9290 λ…„ μ „ +4

    I was looking for this in weeks. Thanks to you I finally found it. I have no enough words to thank you. Great job. keep it up ❀️😍

  • @k415hu7
    @k415hu7 λ…„ μ „ +90

    I don't have words to express for your efforts, you are the best teacher 😭

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +8

      Thank you! 😊

    • @LC-lh2zy
      @LC-lh2zy λ…„ μ „ +1

      Road to success

    • @JohnAtkinson-ww8qe
      @JohnAtkinson-ww8qe λ…„ μ „ +1

      You made one?

    • @ZainUlabideen-fb8zm
      @ZainUlabideen-fb8zm λ…„ μ „

      oOoOO so sadπŸ₯ΊπŸ₯ΊπŸ₯ΊπŸ₯ΊπŸ˜’πŸ˜₯😒πŸ˜₯πŸ˜€πŸ˜€πŸ˜€πŸ˜€

    • @AzadVocals
      @AzadVocals λ…„ μ „

      @@ZainUlabideen-fb8zm really so much embarasing api.how it will works sir im not able to fetch the api??

  • @MostlyPeacefulNinja
    @MostlyPeacefulNinja λ…„ μ „ +1

    Dude, you are a legend in the making. I can't even get through all of these. How are you making these so quickly?
    I owe you at least a big fat donation. Mark my words!

  • @nickstaresinic9933
    @nickstaresinic9933 λ…„ μ „

    A very informative, well-organized, and smoothly delivered presentation. Thanks. I learned a lot.

  • @wujekbizon1
    @wujekbizon1 λ…„ μ „ +8

    There is only one word to describe this content. AWESOME. Keep up the good work Adrian. I'm working on some really huge project myself and this stuff will be and amazing addition to it. Thank you. Here come 2023, a year of AI.

  • @williamlawrence1044
    @williamlawrence1044 λ…„ μ „ +8

    This is the first tutorial I’ve done from start to finish with no mistakes. Thank you

    • @allan.adimoolah
      @allan.adimoolah λ…„ μ „

      Did you get it to run live and make requests after the vercel and render configurations?

    • @HimanshuKumar-hp1vj
      @HimanshuKumar-hp1vj 8 κ°œμ›” μ „

      i got error when deployed@@allan.adimoolah

  • @RamonChiNangWong078
    @RamonChiNangWong078 λ…„ μ „ +1

    Usually I don't and can't follow tutorials that are longer then 15 minutes.
    But someone you've made this very interesting for me in 1 hour and doing it without other annoying JS frameworks
    Thanks you my friend!!!

  • @Matt.Gillard
    @Matt.Gillard λ…„ μ „

    Incredible! Thank you for taking time to do this!!

  • @codecafebyak
    @codecafebyak λ…„ μ „ +8

    I will sure do this and test it out , learning something new is always fun thank you for awesome content❀

  • @AadarshRajCAPAD
    @AadarshRajCAPAD λ…„ μ „ +4

    We would love to have some more deep dives into react from you, especially how to integrate the backend into our projects and create full stack applications, thanks Adrian..

  • @dialloibrahima292
    @dialloibrahima292 λ…„ μ „ +1

    Can’t really describe how awesome your content are ! I’d love to see more react videos.

  • @dean4763
    @dean4763 λ…„ μ „

    Another unique and well-crafted project. Awesome work jsm :)

  • @RichardTumaneng
    @RichardTumaneng λ…„ μ „ +37

    Absolutely insane that this is available for free. You're amazing man, keep doing these, I'm learning so much by actively doing these projects

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +1

      Glad you enjoy it!

    • @housefull2432
      @housefull2432 λ…„ μ „ +2

      @@javascriptmastery can u make it as also can u train him to make apps android like social media app by him self and create ui for the app by him self

    • @RushMyEx
      @RushMyEx λ…„ μ „

      Hey
      I want to create a chatbot, but with your system I canΒ΄t use a "stop" command, and without a stop command for my
      Chatbot:
      Customer:
      he is not able to understand my prompt

  • @1krystyan
    @1krystyan λ…„ μ „ +7

    ============ HOW TO FIX 401 ERROR ============
    For everyone struggling with error 401, here is how I fixed it and now it works as expected.
    First, to explain why that happens, the way the project was created and made, for some reason the .gitignore file does not ignore .env and modules. This will in turn make your API key visible once it's pushed to GitHub, and the OpenAI has something in place that renews the key whenever it's made public (via pushing to the github repository), so everytime you try to make a request, the error 401 is handed over, meaning the API Authorization failed in this case.
    To get around this you must do the following:
    1. Access your project files folder and MOVE the .env file out of the folder completely
    2. Go into VSCode and make sure the .env file is not anymore part of the project
    3. Once you've made sure the .env file is no more, push the current project AND make sure the env file is also removed from your Github Repo by accessing it via browser
    4. Now that .env is out of everywhere, you should only have a local copy. Open the local .env file in VSCode and put a renewed API Key from beta.openai.com/account/api-keys
    5. Once you've refreshed the key, go to render.com/ -> Dashboard -> open your deployed project -> Environment -> Enter "Secret Files" tab
    6. In the Secret Files Tab, enter as the "Filename" ".env" / "Contents" [here you copy all contents of the .env local file exactly as they are wrote in the local copy] for ex "OPENAI_API_KEY ="sk-Sh2akcOFEvelbd5bIReX...T3B"
    7. Back in VSCode -> server.js -> modify the following:
    dotenv.config({path: '/etc/secrets/.env'})
    const configuration = new Configuration ({
    organization: "org-K7....wAv",

  • @imtiazshawn167
    @imtiazshawn167 λ…„ μ „

    This is the best KRplus channel for web developers for sure.

  • @gregcharles92
    @gregcharles92 λ…„ μ „

    Awesome between this video and Adrian Tawrog's I was able to push my own iteration. Thanks JS Mastery!

  • @programmer545
    @programmer545 λ…„ μ „ +3

    Amazing one sir ❀
    Always up to date channel
    The thing others are talking about you build it..

  • @gammaburst3755
    @gammaburst3755 λ…„ μ „ +3

    Hi Adrian, this is just a perfect tutorial, explainations are very clear and really enjoyable to follow. I'm interested in learning how to enable the chatbot to remember information from our previous conversations so that our subsequent interactions can be more precise. Can you explain how to implement this in the code?

  • @kcollier1963
    @kcollier1963 λ…„ μ „

    Great Job! My brain can't work as fast as yours, but thankfully, there are pause and rewind buttons. Much appreciation for your efforts!

  • @asonofyah4341
    @asonofyah4341 λ…„ μ „

    Awesome man! I have been trying to do this on my own without much luck for a few weeks! I consider myself blessed to have stumbled upon your video. Much thanks and appreciation!

  • @betteryou6416
    @betteryou6416 λ…„ μ „ +13

    Anything you put on YT is complete gold. Can you do an Udemy clone next?! With AI reccomendations for courses you may like. That would be fire!!!

  • @chinospur_
    @chinospur_ λ…„ μ „ +22

    My great teacher in Tech! You can never disappoint! If words were enough to appreciate you for your effort towards my learning journey in Tech, I would've written a Wikipedia for you. Keep it up Sir.☺️❀️

  • @AaronHulse1956
    @AaronHulse1956 λ…„ μ „

    Thank you for your efforts, all is well, app worked locally, pushed to Git, published to Render and Vercel with no problems. You are the MAN!

  • @juniorMr
    @juniorMr 11 κ°œμ›” μ „ +1

    Man ,you introduction is amazing

  • @icecube9430
    @icecube9430 λ…„ μ „ +5

    Love the way u keep the debugging part, teaching also how we can effectively solve errors by console logging

  • @mindbodyps
    @mindbodyps λ…„ μ „ +8

    Video we all are waiting from our favourite Javascript channel.
    .
    I made the whole website for my client using ChatGPT, and some of the animation that I didnt know like GSAP and ThreeJs , it code that too.
    It's just Wow for any developer.

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +1

      Thank you!

    • @invictuz4803
      @invictuz4803 λ…„ μ „ +1

      Seriously? What is the application you used on top of ChatGPT to get AI generated code for animations?

    • @maskman4821
      @maskman4821 λ…„ μ „ +1

      I am looking forward to the coming of GPT4, I wonder how good could it be? πŸ€”

    • @mindbodyps
      @mindbodyps λ…„ μ „

      @@invictuz4803 I command ChatGPT that, "Use react functional component and gsap, when user scroll pin an image and on scroll zoom in to the other page.
      Other ThreeJs one is, I told to make interactive rotating earth planet.
      Some basic layout and advance CSS

    • @invictuz4803
      @invictuz4803 λ…„ μ „

      @@mindbodyps That sounds so sick! Do you have it hosted so I can see?

  • @suryansh70
    @suryansh70 λ…„ μ „ +1

    thank you Adrian also just completed this project thanks for such a nice tutorial πŸ€—,you are awesome and btw more projects using vanilla js are appreciated now its time to complete the web3 project

  • @gerrard7359
    @gerrard7359 8 κ°œμ›” μ „

    great video as always Adrian, it really took me way back when I begun coding πŸ‘

  • @mercyfaithnyamburakariuki6112

    I'd love to see both (Vanilla applications and Advanced React applications) on different playlists.
    I must say, your method of delivering content to your students is top tier.

  • @MrHaloshot
    @MrHaloshot λ…„ μ „ +4

    I'd love to see more Vanilla JS from the channel , awsome work btw, you have such a talent to teach and to build things , i truly apreciate your effort .

  • @yeast2588
    @yeast2588 8 κ°œμ›” μ „

    awesome tutorial as always adrian... hoping to join the masterclass soon!

  • @rogue2557
    @rogue2557 λ…„ μ „ +1

    Thank you so much for creating this great tutorial! I'm so happy I reached the end of it and deployed it! Congratulations on 500K subs! πŸ₯³

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „

      Thank you!

    • @pkmkb784
      @pkmkb784 λ…„ μ „

      bro how you deployed it when i deploy it it shows 401 please do reply me

  • @WonderRob
    @WonderRob λ…„ μ „ +3

    Very nice, thanks! would be nice to see more vanilla JS examples

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +1

      More to come!

    • @WonderRob
      @WonderRob λ…„ μ „

      @@javascriptmastery May I suggest Stable Diffusion prompting example?

  • @AaronHulse1956
    @AaronHulse1956 λ…„ μ „ +4

    Great job, but I suggest you do a follow up video on how to avoid the 401 error. The dependencies on OpenAI and Render requiring paid accounts before your great app actually works.

  • @johnmason4264
    @johnmason4264 λ…„ μ „

    Absolutely Amazing !! Please do more videos like this, and thank you so much for the great content.

  • @programmerslife01
    @programmerslife01 λ…„ μ „

    Your video was excellent and well presented. In response to the question asked, I would appreciate the opportunity to see both Vanilla applications and more advanced React applications. Thank you for your contributions to the community. Wishing you a happy holiday season. πŸ™πŸ˜πŸ’—πŸ’—

  • @AdrianTwarog
    @AdrianTwarog λ…„ μ „ +6

    Mate you’ve out done yourself! Great video right here!

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +1

      Your ChatGPT videos are phenomenal, Adrian!

    • @harpit5905
      @harpit5905 λ…„ μ „ +1

      I am sure that both the videos are great. One is for the non developers..While the other is for developers. Interestingly, JSMastery video surfaced after I searched 'ChatGPT Clone'.

    • @Deekshisaisrini
      @Deekshisaisrini λ…„ μ „

      I don't want your video. I want my money

    • @Deekshisaisrini
      @Deekshisaisrini λ…„ μ „

      @@javascriptmastery I want my money back...

  • @BeRaikwal
    @BeRaikwal λ…„ μ „ +4

    You always amaze me with your projects ALWAYS!!! I've been a subscriber of yours since you had 100K subs and now look where you reached straight up coding the ChatGPT clone oh my gosh ure fabbbbbb 😭😭😭✨✨✨✨

  • @Duke49th
    @Duke49th λ…„ μ „ +1

    After I deployed everything online, I had an issue with my key, for some reason. I had to generate a new key. It made me 20 years older because I was already close to tears as I had not idea what is going on. But it worked. Yesss!!! Thanks again :)

  • @philcui9268
    @philcui9268 λ…„ μ „ +2

    Yes, more React app driven by AI demo are more than welcome!
    Thank you in advance!

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +1

      You got it!

    • @philcui9268
      @philcui9268 λ…„ μ „

      @@javascriptmastery Please let me know the video tutorial url once you complete it. Thank you very much!

    • @philcui9268
      @philcui9268 λ…„ μ „

      BTW, why do we have both render and vercel for deploying the app? i mean, can either of them complete the deployment? What's the advantages of combining the two?

  • @yamisukehiro6706
    @yamisukehiro6706 λ…„ μ „ +3

    Thanks for this quality content 🀩

  • @josgraha
    @josgraha λ…„ μ „ +24

    i think it is much clearer to use VanillaJS (tm) instead of React as any Vanilla app can easily be converted to React or something more CDN friendly depending on deployment strategy. I loved seeing the React habits creeping in, well done! Also cool your copilot AI attempting to autocomplete code for you but again resisting the temptation. Thank you so much.

  • @Oure2011
    @Oure2011 λ…„ μ „

    Thanks!!! This is incredible!! New follower from Argentina!

  • @x0xlegendoflinkx0x
    @x0xlegendoflinkx0x λ…„ μ „

    You’ve made sense of so much knowledge I lacked. Thank you

  • @Andrew-Tsegaye
    @Andrew-Tsegaye λ…„ μ „ +33

    wow, Adrian's subscribers are increasing rapidly - the project is magnificent!

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +4

      Thank you

    • @servicekingbd
      @servicekingbd λ…„ μ „ +1

      I'm stronger day by day.Thanks for promoting me. Stay with chatGPT official channel.

    • @imshajib
      @imshajib λ…„ μ „

      @chatGPT official do you know. How can I deploy this project on my website, not free/ 3rd party website.

    • @timmygilbert4102
      @timmygilbert4102 λ…„ μ „

      Still hasn't reach 20k like

    • @Andrew-Tsegaye
      @Andrew-Tsegaye λ…„ μ „ +1

      @@timmygilbert4102 of course it hasn't, but you'll see it soon! πŸ˜‰

  • @yungxix6343
    @yungxix6343 λ…„ μ „ +5

    Again a fantastic video, well delivered! in respect to the question asked, I would go for more Vanilla Javascript videos as to React. Thank you for all you do for the community....... Compliments of the season to you ❀❀❀❀

  • @felixogero2354
    @felixogero2354 λ…„ μ „

    Excellent work JSM I've really learned a lot. Thank you for this nice tutorial.

  • @trollproductionz8575
    @trollproductionz8575 λ…„ μ „

    Thanks for the simple to follow tutorial. I found it very intriguing and I might use it on one of my websites that I own!

  • @streakmaker69
    @streakmaker69 λ…„ μ „ +3

    i would love to see you implement this as React Chat Bot element. Looking forward to it. and Thank you for this awesome tutorial.

  • @tanw89
    @tanw89 λ…„ μ „ +8

    Please do a Stable Diffusion + React tutorial! So much potential for learning especially in terms of how to host a private Stable Diffusion API, set up a lambda function, etc :)

  • @kelvinmburu2698
    @kelvinmburu2698 λ…„ μ „

    This tutorial blew my mind. Its an amazing course. Thank you

    • @usomine_af
      @usomine_af λ…„ μ „

      For help Teleqram me πŸ‘†...

  • @CTILET
    @CTILET λ…„ μ „ +2

    Your courses and videos are the best in web!

  • @amitabhkumar7671
    @amitabhkumar7671 λ…„ μ „ +18

    Amazing Sir, I'd love to see more amazing Vanilla JS projects. I also want to emphasize that, while AI tools are becoming increasingly sophisticated, they cannot replace you. πŸ˜…

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +1

      Exactly!

    • @Hyperwizard29
      @Hyperwizard29 λ…„ μ „

      what is your age?

    • @ogredev
      @ogredev λ…„ μ „ +2

      Yeah unless someone has a strong understanding of the fundamentals of development, I don't see how someone could give the proper prompts to chatgpt.

    • @Deekshisaisrini
      @Deekshisaisrini λ…„ μ „

      Send my money

    • @the_stray_cat
      @the_stray_cat λ…„ μ „

      depends on the "you" after all alot of people already lost their jobs because of AI.

  • @mohsensafi7778
    @mohsensafi7778 λ…„ μ „ +3

    Thank you Adrian! this was AMAZING, do more AI videos please, I prefer React and NextJS but vanilla JS once in a while is good
    again Thank you very very much

  • @Englishmusic-qi9fp
    @Englishmusic-qi9fp λ…„ μ „ +1

    Mosh and adrian are my best teachers in my life i had.
    When you begin mobile app development

  • @videfx8257
    @videfx8257 λ…„ μ „ +1

    Words can't express my gratitude for your efforts Sir! I'm looking forward to the JSM Bootcamp

  • @MajjinBuu
    @MajjinBuu λ…„ μ „ +5

    Hello Adrian can you also create a tutorial for creating AI art using DALL.E in JS
    Great tutorial by the way...love your videos

  • @alaaaldeensubora3804
    @alaaaldeensubora3804 λ…„ μ „ +4

    Thanks for the tutorial! could you please update it to work with the new GPT 3.5 API?

  • @0xM2r
    @0xM2r 10 κ°œμ›” μ „ +1

    I am gonna print this video and frame it on my room. THANK YOU SO MUCH!

  • @iarhirhs6912
    @iarhirhs6912 λ…„ μ „ +1

    I would love and am interested to see and practice more vanilla JS videos! Thanks a hell lotttt and please!

  • @HassanAli-xr2pj
    @HassanAli-xr2pj λ…„ μ „ +5

    Use react js for projects instead of vanilla js because we can.use react js in our dapp development more easily as compared to simple vanilla js.. So it is my humble suggestion to carry on.with react and next js..Thanks A lot😊

  • @adholaharthur572
    @adholaharthur572 λ…„ μ „ +6

    wow... Just wow

  • @theearthdiva
    @theearthdiva λ…„ μ „

    This is the best thing I've ever done! Thank you so much for your help.

  • @hugoribaud7436
    @hugoribaud7436 λ…„ μ „ +2

    Awesome tutorial as always !!! Keep it up man ! You're a legend 😊❀

  • @surajpalsau870
    @surajpalsau870 λ…„ μ „ +7

    If you are getting 429 or 500 status errors, then generate another API key from another account.
    Say thanks using the like button.

  • @pravinragavendran9651
    @pravinragavendran9651 λ…„ μ „ +4

    This was an amazing application and I loved it? Hats off for your dedication πŸŽ‰πŸŽ‰. But I am getting 401 error when I type and press enter. This problem occurs after deployment, but in localhost it's working fine. Can you please help me to resolve this error?

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „ +2

      Hi there, here are a few possible reasons why you might be experiencing issues, along with some potential solutions:
      Proper API key from OpenAI: It's possible that you are not using a valid API key from OpenAI. You can get an API key by visiting beta.openai.com/account/api-keys.
      Free credits offered by OpenAI: If you are using the free credits offered by OpenAI to use their models, you can check your usage at beta.openai.com/account/usage. If you have used up your free credits, you can check the pricing and upgrade your account at openai.com/api/pricing/.
      Proper server deployment: Make sure that you are using the properly deployed link from Render at render.com/. If you are not sure how to deploy the project, follow the steps mentioned in the video.
      After successful deployment of the link, make sure to paste the link in the script file of the client and push it to GitHub. This will allow Vercel to detect and deploy the application properly. Also, please note that the server link used in the Codex repository shared on GitHub has used all of its credits, so it will throw a 429 error and will not work. You will need to use your own server link, either by deploying it on Render or using another hosting service.
      I hope these suggestions help resolve your issue. If you have any further questions, please don't hesitate to ask.

    • @pravinragavendran9651
      @pravinragavendran9651 λ…„ μ „

      @@javascriptmastery okay, thank you so much for resolving my doubtπŸ˜ƒπŸ˜ƒπŸ‘πŸ™

    • @sameerakram9367
      @sameerakram9367 λ…„ μ „

      which localhost you used i m using localhost 3000 but getting 429 status code error

  • @horrid13
    @horrid13 λ…„ μ „ +1

    Thanks for this one !!! I feel like this is a wonderful project! Can you please make a video teaching all the things you need to know in JavaScript before diving into react?

  • @mehmetkoyuncuoglu1624
    @mehmetkoyuncuoglu1624 λ…„ μ „ +1

    Best Teacher Ever. I learned MERN, WEB3 and Build Own CHATGPT because of you :D

  • @fazilahamed1240
    @fazilahamed1240 λ…„ μ „ +2

    I'm always getting the 401 error.... i even tried generating new secret key for the API... but still, i'm stuck with the same error

  • @YuvrajSingh-qz9ss
    @YuvrajSingh-qz9ss 10 κ°œμ›” μ „ +5

    OpenAI all the API''s had paid. Anyone have idea to get it free??

  • @arvydas5017
    @arvydas5017 λ…„ μ „ +1

    this is probably best channel related to js development

  • @TheLightofScience
    @TheLightofScience λ…„ μ „

    This is really excellent and hard work - thank you very much for your prime content, please keep the good work !

  • @uzomadarlington630
    @uzomadarlington630 λ…„ μ „

    Love the project. I will definitely refer people to your channel.

  • @katastropee871
    @katastropee871 λ…„ μ „

    really love the vanilla JavaScript tutorial cause I get lost whenever I use react. More Vanilla JavaScript content please.

  • @ahmedmusawir
    @ahmedmusawir λ…„ μ „ +4

    Plz don't waste your extraordinary work on vanilla JS ... there are too many resources on that anyway ... plz give us more React.js, Blockchain (Solidity), JS & AI (OpenAI), Node.js/Express, and of course GraphQL, GraphQL & more GraphQL. Typescript is also a great idea. Plz, remember your best audience is the intermediate devs. There has been no content for us here before you (on JS). I mean something we can use to build a Portfolio with ... this has been my 2 cents. Unlimited thanks and more thanks in advance.

  • @fatihcicek1712
    @fatihcicek1712 λ…„ μ „ +1

    This is my first time watching you and it is impossible not to be amazed. Greate job

  • @chakirfri
    @chakirfri λ…„ μ „ +1

    this is the best js channel, thanks for the efforts

  • @JAVNADO
    @JAVNADO λ…„ μ „

    I really glad to have discovered this channel...❀❀❀

  • @OnChainEpic
    @OnChainEpic λ…„ μ „

    This was amazing, please do more!!! Maybe add a tutorial for a simple app using Dalle as well with prompt and image return

  • @bongumenzinzama6896
    @bongumenzinzama6896 λ…„ μ „ +1

    Don Adrian again with stunning work,thank you bro✌️

  • @naziruadam3950
    @naziruadam3950 λ…„ μ „ +1

    This is phenomenal!... I'm totally stunned!

  • @ranamujahid1549
    @ranamujahid1549 8 κ°œμ›” μ „

    You are on another level sir ❀️

  • @someguywithaiUSER
    @someguywithaiUSER λ…„ μ „

    Thank you so much for sharing such an informative and useful video on building and deploying a ChatGPT AI app in JavaScript. USER and I will definitely be giving this a try in an upcoming video. Keep up the amazing work, JavaScript Mastery!

  • @stangurule1017
    @stangurule1017 λ…„ μ „

    This is insane!!
    I thought I was getting a grasp on JavaScript... Until now

  • @amirnorozi1085
    @amirnorozi1085 λ…„ μ „

    personally I like React JS but the way that you show me vanilla, I look forward to learn it from you

  • @Duke49th
    @Duke49th λ…„ μ „ +1

    Edit: Oh wow. I got it. Until the end. And it works. Thank you so much!!!
    Old comment:
    I just type exactly every bit of code as you do. I have no clue about coding, aside from some very basic HTML+PHP many years ago (and learned that in the same way, following someone with step by step copying what he is typing on the screen).
    I'm at Minute 26 and deeply hope you haven't skipped something thinking we all are coder that know what to do 🀣
    But I am already grateful for such a good step by step tutorial. Good thing you explain most of what you are typing. If necessary I will just ask the AI what this and that means lol - amazing times coming ahead...

  • @nocturno7887
    @nocturno7887 λ…„ μ „ +1

    I'm actually quite happy to see vanillajs in your channel. Thank you

    • @javascriptmastery
      @javascriptmastery  λ…„ μ „

      Thank you!

    • @owusukenneth1392
      @owusukenneth1392 λ…„ μ „

      @@javascriptmastery pls I rgently need help! i keep encountering an error:
      POST localhost:5000/ 500 (Internal Server Error)
      handleSubmit @ script.js:82
      (anonymous) @ script.js:112

  • @shahneelshaykh6818
    @shahneelshaykh6818 λ…„ μ „ +2

    Absolutely brilliant! Yesterday i was thinking that what if i develop something like chatgpt with unique idea and today i got your pop up notification