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!
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
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
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?
@@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
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.
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
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
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?
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
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
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
I wish all tutorials had this pace. I've seen people explain similar stuff in one hour
@@ABUSEDBYTH-cam I sm programming java script since 2 weeks, so i am a newbie and i came along perfect
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!
The pace of this is perfect 👌🏼
Awesome.. I hope all videos have same time complexity. 😊
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
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
@@ailenrgrimaldi6050 didn't work for me :( also, aren't those "import" commands from Python instead of JS?
now it worked. Only changed the import to
const { OpenAI } = require('openai');
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?
i have this error
I have the same problem
Correct that's the current error.
@@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
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.
I had to speedup the video 2x. Was a bit slow.
Nice tutorial! 👌🏼
hahaha
Amazing!
Great Tutorial, thank you very much.
Happy it helped! :)
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
amazing tutorial, not too complex and respects ur time
Excellent ! Thank you!
thank you for the video. but do you know how to get the response in stream when you set stream=true"
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
try "gpt-3.5-turbo" see if it's smarter
When you check on the node it don't have an error but on the browser it have an error on import
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?
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
@@tomisloading no bro, i didn't use the API before it's my new openAI account
@@kathir1188 same issue with me, any update on it?
On my side it giving me empty text
remove "stop" property from request object)
swift and brutal ...like my ex 👌
real content starts at 3:00
Tại sao tui lại bị error này nhỉ:
const configuration = new Configuration({
^
TypeError: Configuration is not a constructor
Configuration is part of version 3.0. If you use 4.0, you will receive that error.
version of what?@@poopityscooper2116
amazing
Is it free to use?
not working for me, when i use postman :/ why?
Same thing. I am getting error 404. Have you found a solution for your problem ?
@@BLACK-ht7mk my problem solve not free account.
@@tomekipro1687 I am using free account but it's not working for me
Good rap
What theme are you using?
Andromeda!
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
using this I just get an empty string for my text value every time.
Cool 😘👍😍😀🤩
I like your voice
TypeError: Configuration is not a constructor
same issue, can u explain why it is comming?
This is how you do it, pertect tutorial
Hindi main bola marde bhojpuri maati se belong kareni 😊😊
Oh Ragazzo....please next time speak also faster
Ipossible to follow you if not native speaker
I feel you bro, to be able to see this video, I needed to watch it in 0.75 lol
Amazing!