How To Create A Chatbot With Html Css and Javascript | Chat GPT Clone

  Рет қаралды 16,188

Html Camp

Html Camp

Күн бұрын

Пікірлер: 27
@htmlcamp
@htmlcamp Жыл бұрын
The API key for openai is no longer free. If you want to buy the api key you can follow on with the procedure in the video and everything will be ok. But if not you can use the google Gemini AI. I'll make a video on it soon
@RG-Tech_Industries
@RG-Tech_Industries Жыл бұрын
it is not working
@RG-Tech_Industries
@RG-Tech_Industries Жыл бұрын
please tell me
@RG-Tech_Industries
@RG-Tech_Industries Жыл бұрын
it is like this 15:00
@htmlcamp
@htmlcamp Жыл бұрын
Please make sure that the api code is the same as what i wrote. Where the code should be in quotation marks put it in. You can download the finished project to compare. Link in the video description
@MasoodAhmedKhan-y9q
@MasoodAhmedKhan-y9q 11 ай бұрын
still not working bro@@htmlcamp
@LancasteTech
@LancasteTech 9 ай бұрын
Fantastic tutorial! It is almost impossible to find a nice, simple, follow along like this, thank you so much!
@SurajPandey-vi9gr
@SurajPandey-vi9gr 7 ай бұрын
The open api is not free anymore
@TheAiBozz
@TheAiBozz 7 ай бұрын
Ohhh😢 so what we do now?
@hamzaShahid-x5i
@hamzaShahid-x5i 10 ай бұрын
Hey, does it cost at all to use the open ai api at all as used in this video?
@nohandlelmaoo
@nohandlelmaoo 5 ай бұрын
It costs $0.002 per 1k tokens. Google chatgpt api price
@mc.fly.8622
@mc.fly.8622 4 ай бұрын
Yeah, i guess i'll say it for everyone, the curl you we're using is abit different now, and me (the one who mostly copy your code) is stuck at the error where the only responce it shows is just "Oops! An error occurred. Please try again." If you could help, i'd be grateful.
@NormalyBS
@NormalyBS 4 ай бұрын
Bro it acually working but chat-gpt is just loading ( can't answer )
@AbbanSadiq-ht5dy
@AbbanSadiq-ht5dy 5 ай бұрын
So beautiful 😇⭐⭐⭐⭐⭐
@ayushi333
@ayushi333 6 ай бұрын
Code is not working please help me
@gamesmeeky8346
@gamesmeeky8346 Жыл бұрын
i downloaded your code and it is not working bro
@antaryamigamingyt467
@antaryamigamingyt467 6 ай бұрын
yes he is sharing the wrong code
@Samsoor972
@Samsoor972 Ай бұрын
Is the api free or paid?
@gautamnaugai.iab94
@gautamnaugai.iab94 9 ай бұрын
Bro please solve my problem
@alextalavera9926
@alextalavera9926 7 ай бұрын
Can you helpme
@glowzoomer
@glowzoomer Жыл бұрын
i need this codes
@htmlcamp
@htmlcamp Жыл бұрын
Will provide link in description
@glowzoomer
@glowzoomer Жыл бұрын
@@htmlcamp i found, bunch of thank you bro🙂✊
@MohdAhmad-vl6wc
@MohdAhmad-vl6wc 7 ай бұрын
Script cannot work
@fun.tvchild
@fun.tvchild 6 ай бұрын
don't berry use this code const messageBar = document.querySelector(".bar-wrapper input"); const sendBtn = document.querySelector(".bar-wrapper button"); const messageBox = document.querySelector(".message-box"); let API_URL = "api.openai.com/v1/chat/completions"; let API_KEY = "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"; sendBtn.onclick = function () { if (messageBar.value.length > 0) { let message = ` ${messageBar.value} `; let response = ` ... `; messageBox.insertAdjacentHTML("beforeend", message); setTimeout(() => { messageBox.insertAdjacentHTML("beforeend", response); const requestOptions = { method: "POST", headers: { "Content-Type": "application/json", "Authorization": `Bearer ${API_KEY}` }, body: JSON.stringify({ "model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": messageBar.value}] }) }; fetch(API_URL, requestOptions) .then(res => res.json()) .then(data => { console.log(data); // You can handle the response from the API here }) .catch(error => { console.log(error); }); }, 100); } };
How To Upload Images To A Website With Html Css and Js
6:57
Html Camp
Рет қаралды 1,4 М.
Let's Build ChatGPT 2.0 with React JS and OpenAI on your PC!
1:02:23
Adrian Twarog
Рет қаралды 499 М.
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 31 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Coding a FULL App with AI (You Won't Believe This)
15:19
Creator Magic
Рет қаралды 236 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 492 М.
This Took Me 150 Hours to Code
16:40
Kenny Gunderman
Рет қаралды 294 М.
How to Build AI ChatBot with Custom Knowledge Base in 10 mins
10:46
Write A ChatGPT Chatbot With Node.js
28:39
Traversy Media
Рет қаралды 88 М.
Create a Dark Mode Switch with HTML, CSS, JavaScript
6:26
Coding2GO
Рет қаралды 38 М.
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19