How To Use ChatGPT With JavaScript (NodeJS & Express)

preview_player
Показать описание

Today we'll harness the power of GPT-3, along with NodeJS and Express, to build out a REST API using OpenAI's platform!

For our example, we'll write a POST endpoint which takes a piece of code, then returns the Big O time complexity of that code. That said, you can easily use the same technique to build just about whatever you want!

📚 Project Links

🔗 My Links
Рекомендации по теме
Комментарии
Автор

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

ghayaa
Автор

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!

lancemarchetti
Автор

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

decodeblocks
Автор

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.

traezeeofor
Автор

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

dckinrf
Автор

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?

javieraragones
Автор

I had to speedup the video 2x. Was a bit slow.

Nice tutorial! 👌🏼

friso
Автор

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

sathviksb
Автор

amazing tutorial, not too complex and respects ur time

streamology
Автор

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

tribecasterTV
Автор

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

huyhuynhuc
Автор

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

frankchen
Автор

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

TypeError: Configuration is not a constructor

quangvidang
Автор

TypeError: Configuration is not a constructor

eugenefedorov
Автор

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

theobellash
Автор

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?

kathir
Автор

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

albertbrannan
Автор

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

tomekipro
Автор

This is how you do it, pertect tutorial

yawarshaikh
Автор

Hindi main bola marde bhojpuri maati se belong kareni 😊😊

RohitTiwari-mxdd
join shbcf.ru