How To Build Your Own AI With ChatGPT API

How To Build Your Own AI With ChatGPT API

Web Dev Simplified

1 год назад

395,070 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@virgilwalker683
@virgilwalker683 - 24.11.2023 06:44

Your using a Linux base application to run your commands?

Ответить
@surajalwayslight5707
@surajalwayslight5707 - 22.11.2023 09:14

TypeError: openai.createChatCompletion is not a function ,
how to resolve this now ?

Ответить
@tomasbloem3591
@tomasbloem3591 - 16.11.2023 16:50

Maybe it's a dumb question, but is there a tutorial on how to set up the correct programs? Because I keep getting errors like "MODULE_NOT_FOUND". Sounds like I don't have the same setup as you...

Ответить
@PaandaCat
@PaandaCat - 10.11.2023 00:58

why u look like that

Ответить
@Nursultan_karazhigit
@Nursultan_karazhigit - 02.11.2023 19:18

thanks for the video, is it possible to integrate all the features of chat gpt 4 into your application ? e.g. transcribing a conversation into crm to check customer service quality ?

Ответить
@minhcao7484
@minhcao7484 - 29.10.2023 14:28

is it free

Ответить
@paulolinks1
@paulolinks1 - 26.10.2023 03:18

Probably the API was update and this code doesn't work anymore...

Ответить
@drjambalaya8395
@drjambalaya8395 - 26.10.2023 01:47

When using the API, I guess all prompts will still be used as training data, right? Can you even do something to keep your input confidential?

Ответить
@rafmaits8656
@rafmaits8656 - 22.10.2023 13:34

How do we use it for our own datasets?

Ответить
@csprofessorpam
@csprofessorpam - 18.10.2023 00:34

I am getting the error that openai.createChatCompletion is not a function. I guess the docs have changed? I am trying to find the correct syntax to use.

Ответить
@ihyrere
@ihyrere - 11.10.2023 16:51

What terminal is he using?

Ответить
@pgill18
@pgill18 - 09.10.2023 04:02

Current version of openai has a changed since this video. Here's the code that works now (Oct 2023):

import { config } from 'dotenv'
config()
import { OpenAI } from 'openai'

const openai = new OpenAI( { apiKey: process.env.API_KEY } );

openai.chat.completions.create({
model: "gpt-3.5-turbo",
messages: [
{ role: "user", content: "Hello ChatGPT" }
]
}).then(res => {
console.log(res)
res.choices.forEach( out => console.log(out.message) );
});

Ответить
@ToiBroCode
@ToiBroCode - 30.09.2023 11:20

Hi is there anyway to build our own ChatGPT AI using JavaScript for fun? thanks

Ответить
@tedspens
@tedspens - 11.09.2023 20:44

The assistant response was not quite accurate. It forgot to mention that dude, you rock! Now to build this into my SvelteKit app. Thank you!

Ответить
@user-iw7fp1mc9x
@user-iw7fp1mc9x - 08.09.2023 04:47

can you do this in Python instead of Java?

Ответить
@Nba2kmobile69
@Nba2kmobile69 - 31.08.2023 17:31

Handsome ass dude

Ответить
@sorianojeloi7153
@sorianojeloi7153 - 31.08.2023 03:25

Cool video but not your own AI. I expected chatGPT will respond based on your own data.

Ответить
@sohailahmad1277
@sohailahmad1277 - 29.08.2023 11:43

Big fan of your content❤💕💕

Ответить
@negativeplayer4446
@negativeplayer4446 - 24.08.2023 20:35

Question: Is it possible to create a front-end that with features that allows the AI to obtain and search data within the conversation through a "network tree?" (Essentially training the AI on the data you have whilst preventing the AI to input unwanted data)

What I mean by that is: "The Network Tree" is a Network containing branches and trees that serve as connection between certain elements portrayed within the conversation. We can visualize this as a map containing all elements and descriptions about a conversation, a story, or something else and the necessary data about those. A complex summary in a form of a map.

By entering certain prompts and referencing local data as a basis for generating future responses, the AI is able to output more consistent responses whilst still utilizing "skills" from its database as the Network Tree would have to make the AI redo responses that the user doesn't want or wasn't asking.

NT (Network Tree) inquires AI in the background to fulfill certain prompts which are generated whenever certain keywords are present within the input. So if user asked for a character in the story, the NT will ask the AI to provide all necessary data about the character. This will also work the same for items, places, etc.. This prevents AIs from randomly generating info aboit existing elements as the NT will be the AI's reference point.

A branch is generated from an NT whenever it detects the user provide new data that is related to that NT. A new NT will be generated whenever the input generated is new, but different to the current trees within the conversation.

For ex:
You can have several trees for a cast of characters each with their own branches. Another set for setting, more for items, places, etc. These are updated when AI sees that data from user is new and decides whether it is or isn't related.

Also, if AI sees that user-input is inconsistent for NT, it would inquire user for clarification and will update branch or ignore the token that triggered the inconsistencies to prevent confusion.

NTs will also keep tract of scenes, updating scenes and asking AI to generate timelines and dates for said scenes. A scene is generated whenever the AI detects new action taking place or the settings changing. Sub-scenes are generated in Main-scenes. These can be subtle actions, conflicts, thoughts, etc. within the cast. Like a scene of a family eating with the main cast having trouble with some schoolwork. The NT would ask AI to generate a requirements for that scene such as who is in the scene, their appearance, age, name, personality, where they're placed, etc.

These inquires could be automously generated by prompting the AI to generate details within the scene in the background.

Ответить
@simpledish2471
@simpledish2471 - 22.08.2023 13:45

I want to copy it step by step but in the first step im doomed. How to make file like that, the .env?

Ответить
@Sanjeet287
@Sanjeet287 - 20.08.2023 14:18

how should i fix this error

The requested module 'openai' does not provide an export named 'Configuration'

Ответить
@theunexpectedqueso3169
@theunexpectedqueso3169 - 17.08.2023 21:21

Why does the it say that the requested module 'openai' does not provide an export named 'Configuration' ????

Ответить
@lefterisgilmaz4714
@lefterisgilmaz4714 - 14.08.2023 02:12

When you use chatGPT to build a webapp. do you actually learn?

Ответить
@yuting386
@yuting386 - 30.07.2023 20:33

Thank you Kyle, you always make stuff so much easier to understand❤

Ответить
@kittentheorangetabby9676
@kittentheorangetabby9676 - 23.07.2023 18:57

I did this and integrated it with AWS for speech, and linked a bunch of Google API services in.

Ответить
@michaelgonzales2732
@michaelgonzales2732 - 19.07.2023 14:58

Hello. I am trying to integrate ChatGPT with TextDrip and Acuity. Would I follow this same process to have ChatGPT to respond to Yes responses from TextDrip campaigns and guide them towards making an appointment in Acuity?

Ответить
@MiguelDiganchi
@MiguelDiganchi - 16.07.2023 19:41

Hello! I enjoyed watching your video. I have a few questions about the pricing of training. When should we train the API? And how often should we train it?

Thank you for your time.

Ответить
@AliBinNaseer
@AliBinNaseer - 15.07.2023 17:07

I just signed up today and it says I have completed my quota :/

Ответить
@alexander123987
@alexander123987 - 15.07.2023 09:27

Looking for something like this but more explanation. Immediately got an error trying to use node.js.
I'm super stoked to start playing around with the api but I need a little more detail. Do y'all have any ideas?

Ответить
@muhammadnazrulzulkifli1955
@muhammadnazrulzulkifli1955 - 13.07.2023 09:35

I've got distracted by your guitar in the earlier minutes 😅.. anyway thanks Kyle!
Thanks for your sharp and concise explanation. Great video!

Ответить
@amaan8617
@amaan8617 - 12.07.2023 10:41

This is showing this error
message: 'You exceeded your current quota, please check your plan and billing details.',
I have never used this API before still it is showing that you have exceeded your quota. How can i resolve it ? Please do answer Sir

Ответить
@DigitalSamTV
@DigitalSamTV - 10.07.2023 18:06

hi, how do u set if the api uses gpt3.5 or gpt 4 ? there is no setting when you generate the key as far as I can see... please help. cheers

Ответить
@jonathanalphonso2035
@jonathanalphonso2035 - 04.07.2023 04:21

Tip for anyone trying this and failing. I was getting an error: "You exceeded your current quota...". Turns out you need to add your credit card info and then wait 15 or so minutes before making API calls. It was driving me nuts since I thought I was doing something wrong.

Ответить
@johnskyleir
@johnskyleir - 02.07.2023 13:45

Kyle, you are sexy and just leave these mambo jumbo things and make a couple of movies and hit the jack pot . You cannot catch up the computer science forever.

Ответить
@Indo_MuslimChannel
@Indo_MuslimChannel - 01.07.2023 12:50

i am so lost ... maybe it is not for dme :(

Ответить
@brodendangio4810
@brodendangio4810 - 01.07.2023 01:31

This is the essential tutorial on setting up your first basic ChatGPT bot.

Ответить
@YouthfulPat501
@YouthfulPat501 - 30.06.2023 16:06

i've tried this with roblox but the free api key doesnt seem to work. it just returns nil. anyone have any idea on how to fix this?

Ответить
@nilpatil5387
@nilpatil5387 - 27.06.2023 07:17

thanks kyle, i was looking for something on open ai you explained so well loved it

Ответить
@MW2proification
@MW2proification - 18.06.2023 02:15

When you integrate the chatbot from openai, will it be tied to it by any means of policy, monetization or data transfer, or will this one you personally integrate is totally isolated on your local machine and can do almost anything you want with it?

Ответить
@xx_Firefox_xx
@xx_Firefox_xx - 15.06.2023 21:51

my brain has never been so confused and understanding at the same time

Ответить
@JamesQQuick
@JamesQQuick - 09.06.2023 20:04

Nice!!

Ответить
@MedyZeus
@MedyZeus - 08.06.2023 18:14

Is there a problem with the API? I just used it for the first time ever and got this error in the response
error: {
message: 'You exceeded your current quota, please check your plan and billing details.',
}

does anyone find out how it works?

Ответить
@nathanmedia3544
@nathanmedia3544 - 06.06.2023 18:06

GOD bless you

Ответить
@SnappyScience
@SnappyScience - 04.06.2023 04:50

Brilliant video. Gets you up and running in time!

Ответить
@eliah787
@eliah787 - 27.05.2023 16:06

how to open terminal like that?

Ответить
@sarveshschauhan
@sarveshschauhan - 27.05.2023 06:24

Thanks Kyle, can you explain how we can use a custom information using that as a base information it gives the output?

Ответить
@kostasgoggakhs617
@kostasgoggakhs617 - 27.05.2023 00:43

anyone know why they tell me code: 'invalid_api_key'
??

Ответить
@bravoslab
@bravoslab - 26.05.2023 20:37

what's good, Kyle? was just wondering how can I make GPT answer the user prompt under a role given by a dev prompt? "u are an engineer focused on 2floor buildings" for example and then give out some data the model can use to better answer the questions/prompts from the user. do u understand?

Ответить
@a1x5h04
@a1x5h04 - 22.05.2023 07:58

Here if any one wants to develop app with OpenAI api
Here's is the key, `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`

*It's only available till 1 June, so use it quickly!*

please pin this comment so everyone can benefit from it...

Ответить
@LEKSIDENATION1
@LEKSIDENATION1 - 22.05.2023 00:30

How to i train it with my own data

Ответить