How To Use ChatGPT With JavaScript (NodeJS & Express)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 63

  • @deepvoyager01
    @deepvoyager01 3 หลายเดือนก่อน +1

    I watched this with 0.9x (by an yt extension), amazing content in a short time, other youtubers will take hours of video length
    thank you
    it's helpful

  • @ghayaa1234567890
    @ghayaa1234567890 ปีที่แล้ว +24

    I wish all tutorials had this pace. I've seen people explain similar stuff in one hour

    • @fritzschattel4716
      @fritzschattel4716 ปีที่แล้ว

      @@ABUSEDBYTH-cam I sm programming java script since 2 weeks, so i am a newbie and i came along perfect

  • @lancemarchetti8673
    @lancemarchetti8673 ปีที่แล้ว +1

    In under a minute, ChatGPT generated an simple webpage that allowed me to browse for an image on my pc, cut it up into 10 pieces and zip the separate files to a folder on my desktop. It produced the HTML, JavaScript and CSS . Worked first time around. Very impressed!

  • @robhawkins2446
    @robhawkins2446 ปีที่แล้ว +8

    The pace of this is perfect 👌🏼

  • @decodeblocks2241
    @decodeblocks2241 9 หลายเดือนก่อน +2

    Awesome.. I hope all videos have same time complexity. 😊

  • @CarlosGuaderrama
    @CarlosGuaderrama ปีที่แล้ว +4

    this tutorial not working for me, i am use node version 18.17.0i have this error
    const configuration = new Configuration(
    ^
    TypeError: Configuration is not a constructor

    • @ailenrgrimaldi6050
      @ailenrgrimaldi6050 11 หลายเดือนก่อน +4

      its deprecated, you need to import OpenAI like this:
      import { OpenAI } from 'openai';
      Then use the API key this way:
      const openai = new OpenAI({
      apiKey: process.env.OPENAI_API_KEY,
      });
      Good luck

    • @ArmandoGabrielMoreno
      @ArmandoGabrielMoreno 4 หลายเดือนก่อน

      @@ailenrgrimaldi6050 didn't work for me :( also, aren't those "import" commands from Python instead of JS?

    • @ArmandoGabrielMoreno
      @ArmandoGabrielMoreno 4 หลายเดือนก่อน

      now it worked. Only changed the import to
      const { OpenAI } = require('openai');

  • @javieraragones2320
    @javieraragones2320 ปีที่แล้ว +4

    Hello,
    I have a problem when I run the js:
    const configuration = new Configuration({
    ^
    TypeError: Configuration is not a constructor
    Someone knows how to fix it?

    • @CarlosGuaderrama
      @CarlosGuaderrama ปีที่แล้ว

      i have this error

    • @bigbadcatbigbcy2933
      @bigbadcatbigbcy2933 ปีที่แล้ว

      I have the same problem

    • @traezeeofor
      @traezeeofor 11 หลายเดือนก่อน

      Correct that's the current error.

    • @bigbadcatbigbcy2933
      @bigbadcatbigbcy2933 11 หลายเดือนก่อน

      @@traezeeofor this video is old. Openai released a new version of their library so this video doesnt match that. There are new videos released about it look it up

  • @traezeeofor
    @traezeeofor 11 หลายเดือนก่อน +3

    Thanks Tom Is Loading, love the brevity of the tutorial.
    However as at Jan 4th 2024 tutorial now has bugs.
    Several people have complained of getting the "TypeError: Configuration is not a constructor" after running npm run dev.
    There is also an additional deprecated error:
    (node:7272) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

  • @friso2591
    @friso2591 ปีที่แล้ว +2

    I had to speedup the video 2x. Was a bit slow.
    Nice tutorial! 👌🏼

  • @JamesQQuick
    @JamesQQuick ปีที่แล้ว +2

    Amazing!

  • @paiinlove1992
    @paiinlove1992 ปีที่แล้ว +1

    Great Tutorial, thank you very much.

  • @sathviksb6797
    @sathviksb6797 ปีที่แล้ว +2

    i have an issue that always says that my api key is invalid. how much ever i try the issue doesnt seem to go, the api key doesnt show in the error, it just shows as "Invalid API Key: undefined". Please advise

  • @streamology
    @streamology ปีที่แล้ว +1

    amazing tutorial, not too complex and respects ur time

  • @valenciawalker6498
    @valenciawalker6498 ปีที่แล้ว

    Excellent ! Thank you!

  • @frankchen3021
    @frankchen3021 ปีที่แล้ว

    thank you for the video. but do you know how to get the response in stream when you set stream=true"

  • @huyhuynhuc1122
    @huyhuynhuc1122 ปีที่แล้ว +2

    I use openAPI v3.1.0 with text-davinci-003 model, but some data responsed is wrong. Some response is very stupid :v. Do u know reason? Thank you. I expect it is smart as GPT. But none... :v Thank you

    • @b0cch3r
      @b0cch3r ปีที่แล้ว

      try "gpt-3.5-turbo" see if it's smarter

  • @tribecasterTV
    @tribecasterTV ปีที่แล้ว

    When you check on the node it don't have an error but on the browser it have an error on import

  • @kathir1188
    @kathir1188 ปีที่แล้ว +1

    It shows me an error of {
    "success": false,
    "error": {
    "error": {
    "message": "You exceeded your current quota, please check your plan and billing details.",
    "type": "insufficient_quota",
    "param": null,
    "code": null
    }
    }
    }
    can any one help?

    • @tomisloading
      @tomisloading  ปีที่แล้ว

      If you've been using the API a lot, then you'll need to add a card on file to use it more. If not, I believe you might also need to be sure to confirm your email etc before it will let you use the API

    • @kathir1188
      @kathir1188 ปีที่แล้ว

      @@tomisloading no bro, i didn't use the API before it's my new openAI account

    • @meenalgupta3
      @meenalgupta3 ปีที่แล้ว

      @@kathir1188 same issue with me, any update on it?

  • @Ytrajpoot
    @Ytrajpoot ปีที่แล้ว +5

    On my side it giving me empty text

  • @faustozambrano4901
    @faustozambrano4901 ปีที่แล้ว +1

    swift and brutal ...like my ex 👌

  • @namesare4fools
    @namesare4fools ปีที่แล้ว +2

    real content starts at 3:00

  • @quangvidang9507
    @quangvidang9507 ปีที่แล้ว

    Tại sao tui lại bị error này nhỉ:
    const configuration = new Configuration({
    ^
    TypeError: Configuration is not a constructor

    • @poopityscooper2116
      @poopityscooper2116 ปีที่แล้ว +2

      Configuration is part of version 3.0. If you use 4.0, you will receive that error.

    • @bigbadcatbigbcy2933
      @bigbadcatbigbcy2933 ปีที่แล้ว

      version of what?@@poopityscooper2116

  • @جوادجیتی
    @جوادجیتی ปีที่แล้ว

    amazing

  • @yashjobalia
    @yashjobalia ปีที่แล้ว

    Is it free to use?

  • @tomekipro1687
    @tomekipro1687 ปีที่แล้ว

    not working for me, when i use postman :/ why?

    • @BLACK-ht7mk
      @BLACK-ht7mk ปีที่แล้ว

      Same thing. I am getting error 404. Have you found a solution for your problem ?

    • @tomekipro1687
      @tomekipro1687 ปีที่แล้ว

      ​@@BLACK-ht7mk my problem solve not free account.

    • @priyankakataria7922
      @priyankakataria7922 ปีที่แล้ว

      ​@@tomekipro1687 I am using free account but it's not working for me

  • @aleksandrsanzhanov7316
    @aleksandrsanzhanov7316 ปีที่แล้ว +2

    Good rap

  • @codewithme_21
    @codewithme_21 ปีที่แล้ว

    What theme are you using?

  • @theobellash6440
    @theobellash6440 ปีที่แล้ว

    While this video is relavant, it’s using GPT model … Not ChatGPT at all!
    There’s now a ChatGPT API that allows users to directly use ChatGPT from their own application

  • @albertbrannan4
    @albertbrannan4 ปีที่แล้ว

    using this I just get an empty string for my text value every time.

  • @maskman4821
    @maskman4821 ปีที่แล้ว

    Cool 😘👍😍😀🤩

  • @bakanndy
    @bakanndy ปีที่แล้ว

    I like your voice

  • @eugenefedorov3498
    @eugenefedorov3498 8 หลายเดือนก่อน +1

    TypeError: Configuration is not a constructor

    • @MuhammadIrfan-cj1cq
      @MuhammadIrfan-cj1cq 7 หลายเดือนก่อน

      same issue, can u explain why it is comming?

  • @imywr
    @imywr ปีที่แล้ว

    This is how you do it, pertect tutorial

  • @RohitTiwari-mx1dd
    @RohitTiwari-mx1dd ปีที่แล้ว

    Hindi main bola marde bhojpuri maati se belong kareni 😊😊

  • @donandreas0209
    @donandreas0209 ปีที่แล้ว +4

    Oh Ragazzo....please next time speak also faster
    Ipossible to follow you if not native speaker

    • @maviniii
      @maviniii ปีที่แล้ว +3

      I feel you bro, to be able to see this video, I needed to watch it in 0.75 lol

  • @1Chitus
    @1Chitus ปีที่แล้ว +2

    Amazing!