Sonny, how are you? Here Simon from Chile. I work as a concierge and since 2021 I have been enduring mistreatment and bosses who seek to solve their problems at my expense, the last month and a half I am already directly ill (psychically, physically and financially), so I have been studying for a while to be a frontend developer and change my life. A few months ago I found your RUclips channel and I must say that it blew my mind. I am immensely grateful for what you do, from your project-based courses, clones of well-known platforms, and even the music you use in your videos (which I didn't know, and in these difficult times, songs like "Honesty" or "You Blow My Mind" by Hallman help me feel better). Somehow I wanted to thank you and let you know that there are people you are helping to see the light at the end of the tunnel. I hope you are well, greetings!
This is an incredibly powerful message - thank you for sharing your story and I’m grateful I was able to positively impact your life 🙏🏽 Keep growing brother!!! 🔥 #PAPAFAM
For those getting stuck at 2:48:00 and finding the app not returning the answers from the openai api. Sonny used next 12 in this tutorial and in latest next 13 version routing/route handlers have been changed so the await fetch("api/askQuestion") in the chatInput component in this video no longer works. Anyone who tries to do this tut on Next 13 will get stuck here unless they opt out of using the recommended /app and use /pages instead. I might do a solution video on my channel using next 13 if enough people want to see the fix, like this comment if you want to see it.
Wow, wow, wow. I have never enjoyed a tutorial as much as this. The energy and vibe is unreal from Sonny it felt like a live hackathon. How he manages to do this live for 3 hours along with keeping the stream pumped is next level. Can't wait for more.
Just finished the build myself and deployed it to Vercel. It works! Now, I've got an awesome place to host my own fine-tuned OpenAI models. I trained it with rap-lyrics and made OpenAI slur like a drunk sailor. Thank you so much, Sonny.
This thing is crazy... actually giving me realistic busisness insights... tried its advice.. and actually givin profit.. feels like ive unleashed the genie outta the bottle..
1100 likes in 4 hours! Sonny you are smashing it lad!!! Dubai style lol 😎 just landed my first react native developer interview cause of you! I owe you man. Been hard work grafted did your deliveoo but added way more features and design style spent ages on it. Learnt / learned so much. Thanks bro!
@@SonnySangha I owe you!!! You are epic! Don't get me wrong still plenty plenty of hard work and effort for me to do but last 4-5 months been cool. I love coding again. ♥️
@@jackm2025 I am very happy for you, How can I get in contact with you. I'm also a reactjs developer, I will like to have a chat with you. Hoping for your positive response
Wow, Sonny, your course on building a blog with Next.js, Sanity, TypeScript, Tailwind CSS, Auth, CMS, and Preview Mode was truly amazing! I just finished it and I'm blown away by the knowledge and expertise you shared. Your passion for web development shines through in every aspect of the course. From morocco I am grateful for the opportunity to learn from you. I am now planning to connect Sanity with ChatGPT to generate content more efficiently. I stumbled upon your channel and found this video and I just had to leave a comment to express my gratitude. Keep up the fantastic work, Sonny! You are an inspiration to us all.
Those who aren't getting any response at 2:48:00 is due to OPENAI has stopped giving free access to API'S. Solution: Just setup a payment method for your API and Tie it with limit so you don't overexceed the cost you can't bear, for example like $2. After doing this things your API will work And generate Response. And you will get your query resolved.
Because this is my favorite channel on the whole internet, I'm going to get the best membership there is and I'm going to come out to Dubai and give it to Sunny personally. Maybe in the spring. Got to go to England anyway so might as well take a detour to Dubai.
76 thousand views and only 2.5 thousand likes. kinda fucked up considering this is super dope content as far as tutorials go, its modern, useful, and high energy. Def deserves more love.
Those who aren't getting any response at 2:48:00 is due to OPENAI has stopped giving free access to API'S. Solution: Just setup a payment method for your API and Tie it with limit so you don't overexceed the cost you can't bear, for example like $2.
I can't even explain how Papa React is changing the IT industry scene. I've been closely following him since the clever programmer days, Just completed building this app and deployed successfully. Sonny my Man, you have earn respect from us . ++Respect
You are great sir, your way of explanation while coding is just amazing, this channel will get millions of subscribers definitely! alot of wishes for you just keep getting more and more success and keep shining and keep making this type of content for us... really thankfull to you from bottom of my heart!!!
sonny would loveeee you to go deeper on models and AI based projects. Thank you so so much for your time and effort. You're doing incredible work and i'm grateful to have found this channel! much love
can't love you less Sonny, keep doing the amazing builds, you're really pushing our skills with more than the speed of light😄, can't be tired of referring you channel to others
@SonnySangha you are with no doubt the best teacher out there! Is it possible to update the repo or create a new video where we can use GPT-4 instead of GPT-3 because its a bit out dated now after 2 months only 😅😂 Thank you so much bro !
Those who are facing an issue that is dont get response from chatGPT so just check 2 things 1st is check you openai key which is long key, i think morethan 32 words key which is provided by open ai.2nd check is that check you have return a res in query function. I made those 2 mistake which i explained them to you and it works well😊. I hope this comment help you guys
sir can you please help me the link of your repo , i can't see the response from chatgpt in firebase , please sir I need to show it as final year project
Hey sonny. Great video as usual!!! After watching you video i created my own, hosted on vercel and its working perfectly. Your .env file tip was really helpfull. Thanks a lot and keep it coming!!!
Sony bro, I really want to thank you for helping so much with ur livestreams and videos i learn a lot from you. Your teaching skills are amazing bro. You have taken my coding skills to a professional level. You are doing a Great job brother keep it up !!
You say “keep smashing that like button” but if I smash it twice it is as if I never smashed it all. So maybe something like “ if you have not already “ smash that like button now. … idk any thoughts? Thanks. 🙏 Please don’t take this the wrong way because I do think you are doing fantastic work!!!
Thank you Sonny for your super amazing video. I love all that you do for developers. Every time I code with you I feel great energy and flow. Thank you once again, bro. Czechia is with you!
What I like about sonny is? that he guide in proper way Also paying for repo is good point otherwise people can just put these project inside there resume without implementing it.
On 2:48:21 I'm always getting "ChatGPT was unable to find an answer to that! (Error: Request failed with status code 429)" 😟 Anyone know how to fix? It never worked even with first request and I havent sent any request before this point.
You are awsome bro just completed this build with you video side by side 🥳🥳🥳 Bro can you please make a video on chat app in react native with stream chat as a backend really waiting for that bro😃😃
@@SaquibAnsariofficial01 I can share but can you please confirm that will it going to land me in copyright issue or not?? if not then i will share it to you definately
Great job! Thank you a lot! My chat have problems with little bit complicated requests. If I ask distance from Earth to the Moon - it answers normally. But if I ask "Write VAST Tag using SIMID Framework" - I had no answer and 504 error. Usual ChatGPT give my correct answer without problems.
Got stuck on client IDs. Looks like your GCP had an autogenerated OAuth client ID that matches your firebase client ID. Mine didn't generate that -- tried creating new oAuthClientID in GCP then replacing the firebase one. Didn't work! Any tips?
if youre running into this -- click the little question mark icon next to web SDK configuration in firebase google sign-in method.. then you click the blue link to GCP and itll get the autogenerated projects to show up
One thing I dont understand in your build with firebase, is the useCollection hook in the frontend. I suppose the hook makes sure to not leak sensitive data like Firebase API key to the frontend right?
@@deeepxhit Here comes ChatGPT's answer: The useCollection hook in Firebase is a React hook that is used to interact with a collection in a Firebase Cloud Firestore database from the frontend. It does not directly prevent the leakage of sensitive data like the Firebase API key to the frontend. However, Firebase does provide security rules that can be configured to control access to data in Firestore. These rules specify who can access the data and what actions they can perform on it. By properly configuring security rules, you can ensure that sensitive data is not leaked to unauthorized users. In addition, Firebase also provides a way to store sensitive data securely using the Firebase Functions service. Firebase Functions allows you to write server-side code that can interact with your Firebase project, including accessing sensitive data that should not be exposed to the frontend. So, while the useCollection hook itself does not prevent the leakage of sensitive data, Firebase provides several mechanisms that can be used to ensure that sensitive data is not exposed to unauthorized users.
Hi, Firstly thank you for this amazing build. I have been coding along and got stuck in Openai because it is not responding the askQuestion not in Firestore database not in web, answer is not showing in messages section. what should I do? please help!!!!
@InfraiNFORM So I actually made it a little further before I had problems, It wasnt until trying to bring the messages into the application durring the 2:53:33 Building the Message Component section I start to get the error at run time : Unhandled Runtime Error Error: Objects are not valid as a React child (found: object with keys {_id, name, avatar}). If you meant to render a collection of children, use an array instead. Up until this chapter everything worked as expected, the app will still run showing the front page, login logout, i can create new chats and navigate between chats, how ever if i send a message i get this error, if i attempt to navigate to any chat with a message history I get this error, and if i delete any chat that has a message history I get the error how ever the chat does delete and if i refresh the homepage it will be gone I have gone back from 1:23:34 Implementing Create New Chat Functionality and compared my code to sonnys twice, I could not find any differences the second run through , i have also been over multiple sections between these 2 time stamps several times I did have issues with the next auth api file being in the app directory I had to create a pages directory and place it in the same structure in there and things worked well, I have tried dropping the askQuestion api file into both /app/api and /pages/api; i hhave also tried calling that as /app/api/askQuestion /pages/api/askQuestion & /api/askQuestion with the file in both locations, I now believe that this is again due to the changes between next 12 and 13 furthermore 13.4 and I was able to get the toast notifications working where everyone else seems to be stuck at
hey im having some issues with this project from 2:48:00 minute also not able to fetch data from open ai api can you resolve those if you've made upto little further in this project ?
This app doesn't seem to be work now, I made it along with you on the live stream it was working when, but now suddenly it crashes when chatgpt did something with openai API key configuration ig Can you please make video about that, its now working now or is it just me whose app is not working?
idk if this just an error for me but to use the OpenAI api I had to connect my credit card to my account. The error code I kept getting was 429 and going into the openai discord I searched up my error code and looked for solutions. Seems like the only solution.
Hi Sonny , You are amazing ! I got stuck in the auth part, when I click on the "SignIn" button that links to Google I am sent to Next's 404 and not to google account 404. 1:09:42 Does anyone know what could be the reason for this?
found a solution, it was because I requested by localhost:3001 due to localhost:3000 running another project. I repeated the same with localhost 3000 and with the same email.
If you are using the src directory , make a new pages directory on the root of the project , then move the [...nextauth].ts file to pages/api/auth/ , Hope This helps :)
I really like your content. Can you please help me with this error 'yarn' is not recognized as an internal or external command, operable program or batch file.
i got this error in firebase message collection how to fix them "ChatGPT was unable to find an answer for that! (Error: Request failed with status code 429)"
I guest it's a problem from your openAI API key, check your environment variables very well and check where you used the API key as well, I gotten the same error cause I misspelled a variable name ....check it clearly
15:37 when I run this command in the terminal it creates the project with npm although I already have yarn installed. How did he create the project with yarn instead?
Sonny, how are you? Here Simon from Chile. I work as a concierge and since 2021 I have been enduring mistreatment and bosses who seek to solve their problems at my expense, the last month and a half I am already directly ill (psychically, physically and financially), so I have been studying for a while to be a frontend developer and change my life. A few months ago I found your RUclips channel and I must say that it blew my mind. I am immensely grateful for what you do, from your project-based courses, clones of well-known platforms, and even the music you use in your videos (which I didn't know, and in these difficult times, songs like "Honesty" or "You Blow My Mind" by Hallman help me feel better). Somehow I wanted to thank you and let you know that there are people you are helping to see the light at the end of the tunnel. I hope you are well, greetings!
This is an incredibly powerful message - thank you for sharing your story and I’m grateful I was able to positively impact your life 🙏🏽
Keep growing brother!!! 🔥
#PAPAFAM
This is so true!!! Thanks a lot Sonny!!!
For those getting stuck at 2:48:00 and finding the app not returning the answers from the openai api. Sonny used next 12 in this tutorial and in latest next 13 version routing/route handlers have been changed so the await fetch("api/askQuestion") in the chatInput component in this video no longer works. Anyone who tries to do this tut on Next 13 will get stuck here unless they opt out of using the recommended /app and use /pages instead. I might do a solution video on my channel using next 13 if enough people want to see the fix, like this comment if you want to see it.
I am using page directory for api then also i am facing the same error. please provide a solution
@@tejaswavhal2626 which next version?
@@InfraiNFORM i am using 13.3.4, can you please give me your code
Can you please make a video on how to fix it or share your code repository? I spent my whole day doing this just for it to fail 🤦♂️😂
please do a video
Wow, wow, wow. I have never enjoyed a tutorial as much as this. The energy and vibe is unreal from Sonny it felt like a live hackathon. How he manages to do this live for 3 hours along with keeping the stream pumped is next level. Can't wait for more.
Thank you I’m glad you liked it!!!
Just finished the build myself and deployed it to Vercel. It works! Now, I've got an awesome place to host my own fine-tuned OpenAI models. I trained it with rap-lyrics and made OpenAI slur like a drunk sailor. Thank you so much, Sonny.
Your github link please
Fake. Show your GitHub profile to prove lol. Just another spam text
typescript is used or firebase is used in this video for backend??
please answer !!
@@kedarvyas7134 both are different
can u share please ur github repo link i want to check some code error that i am facing
This thing is crazy... actually giving me realistic busisness insights... tried its advice.. and actually givin profit.. feels like ive unleashed the genie outta the bottle..
1100 likes in 4 hours! Sonny you are smashing it lad!!! Dubai style lol 😎 just landed my first react native developer interview cause of you! I owe you man. Been hard work grafted did your deliveoo but added way more features and design style spent ages on it. Learnt / learned so much. Thanks bro!
Already got a degree but finding your channel has really helped me. Your a legend 👏 🙌
This made my day thank you for sharing dude! #PAPAFAM
@@SonnySangha I owe you!!! You are epic! Don't get me wrong still plenty plenty of hard work and effort for me to do but last 4-5 months been cool. I love coding again. ♥️
@@jackm2025 you’ve already repaid me by smashing it in your career dude, keep growing! 💪🏽🔥
@@jackm2025 I am very happy for you, How can I get in contact with you. I'm also a reactjs developer, I will like to have a chat with you. Hoping for your positive response
This ChatGPT messenger app tutorial is so amazing! The tech stacks used are also fantastic. Truly appreciate!
Thank you I’m glad you enjoyed it!!!
Wow, Sonny, your course on building a blog with Next.js, Sanity, TypeScript, Tailwind CSS, Auth, CMS, and Preview Mode was truly amazing! I just finished it and I'm blown away by the knowledge and expertise you shared. Your passion for web development shines through in every aspect of the course. From morocco I am grateful for the opportunity to learn from you. I am now planning to connect Sanity with ChatGPT to generate content more efficiently. I stumbled upon your channel and found this video and I just had to leave a comment to express my gratitude. Keep up the fantastic work, Sonny! You are an inspiration to us all.
Thank you so much for the kind words! Keep crushing, Sanity x ChatGPT sounds like an awesome combo!!! 🔥
#PAPAFAM
typescript is used or firebase is used in this video for backend??
please answer !!
@@kedarvyas7134 firebase
Those who aren't getting any response at 2:48:00 is due to OPENAI has stopped giving free access to API'S.
Solution: Just setup a payment method for your API and Tie it with limit so you don't overexceed the cost you can't bear, for example like $2.
After doing this things your API will work And generate Response. And you will get your query resolved.
+1 for Solidity and Ethereum based tutorials (ethersjs, wagmi, rainbowkit). Huge fan of videos showcasing projects start to finish. Til the next one!
typescript is used or firebase is used in this video for backend??
please answer !!
@@kedarvyas7134 typescript is used but also fire base for backend
I had forgotten why I was watching your videos, but what a reminder on who you are!!!
BLASTED!!!!
I appreciate that & I’m glad you’re enjoying the content!!! #PAPAFAM 🔥
Very much liked watching Steve Carell create this ChatGPT Messenger. Fantastic character!
Because this is my favorite channel on the whole internet, I'm going to get the best membership there is and I'm going to come out to Dubai and give it to Sunny personally. Maybe in the spring. Got to go to England anyway so might as well take a detour to Dubai.
Sonny your channel is AWESOME 🔥🔥🔥 This is my first time following your stream. Thank you so much!
76 thousand views and only 2.5 thousand likes. kinda fucked up considering this is super dope content as far as tutorials go, its modern, useful, and high energy. Def deserves more love.
This video gained you a subscriber, crazy build loved it !!!!!!!!
Those who aren't getting any response at 2:48:00 is due to OPENAI has stopped giving free access to API'S.
Solution: Just setup a payment method for your API and Tie it with limit so you don't overexceed the cost you can't bear, for example like $2.
personal note:
2:48:12 is where i left.
I can't even explain how Papa React is changing the IT industry scene. I've been closely following him since the clever programmer days, Just completed building this app and deployed successfully. Sonny my Man, you have earn respect from us .
++Respect
I love the way you put music on the background. I am starting to build this. Love from 🇳🇵
Thank you so much 😀🙏🏽🔥
Nice, had huge Fun building this and learned a lot ! Sonny, you are the best ! Looking forward to new Builds 😎
Impressive and seamless tutorial Sonny. I'll be checking you out moving forward. Thanks for the incredible value 👍.
You are great sir, your way of explanation while coding is just amazing, this channel will get millions of subscribers definitely! alot of wishes for you just keep getting more and more success and keep shining and keep making this type of content for us... really thankfull to you from bottom of my heart!!!
sonny would loveeee you to go deeper on models and AI based projects. Thank you so so much for your time and effort. You're doing incredible work and i'm grateful to have found this channel! much love
typescript is used or firebase is used in this video for backend??
please answer !!
This tutorial looks really interesting, im definitely gonna come back after learning typescript.
typescript is used or firebase is used in this video for backend??
please answer !!
Again. The best course you can find. GRACIAS
Thanks for tutorial, all feature is working from start to finish!
can't love you less Sonny, keep doing the amazing builds, you're really pushing our skills with more than the speed of light😄, can't be tired of referring you channel to others
can u provide ur github link bhai
typescript is used or firebase is used in this video for backend??
please answer !!
amazing indeed 💯🔥🔥
Thanks bruh! 🔥🤙🏽
@SonnySangha you are with no doubt the best teacher out there!
Is it possible to update the repo or create a new video where we can use GPT-4 instead of GPT-3 because its a bit out dated now after 2 months only 😅😂
Thank you so much bro !
Hi From Tunisia ! This Is So Coool Sonny , I really like what you are doing , Keep it up Bro , and Thank You 💯
Those who are facing an issue that is dont get response from chatGPT so just check 2 things 1st is check you openai key which is long key, i think morethan 32 words key which is provided by open ai.2nd check is that check you have return a res in query function. I made those 2 mistake which i explained them to you and it works well😊. I hope this comment help you guys
sir can you please help me the link of your repo , i can't see the response from chatgpt in firebase , please sir I need to show it as final year project
谢谢!
plus, you did get me my job as a Junior Full Stack Engineer. so ty for that as well.
Hey sonny. Great video as usual!!! After watching you video i created my own, hosted on vercel and its working perfectly. Your .env file tip was really helpfull. Thanks a lot and keep it coming!!!
Would you please share your repo with me ? i need the code because sony sangha not providing the repo for free
One of your best Sonny! Loved it, keep up the great work
Sony bro, I really want to thank you for helping so much with ur livestreams and videos i learn a lot from you. Your teaching skills are amazing bro. You have taken my coding skills to a professional level. You are doing a Great job brother keep it up !!
typescript is used or firebase is used in this video for backend??
please answer !!
@@kedarvyas7134 firebase as backend
Nice, I want to learn a bit about backend and firebase so this is perfect.
Awesome!
you're a gift!!!! learned so much from you
I lov the way you enjoy what you do🔥
You say “keep smashing that like button” but if I smash it twice it is as if I never smashed it all. So maybe something like “ if you have not already “ smash that like button now. … idk any thoughts? Thanks. 🙏
Please don’t take this the wrong way because I do think you are doing fantastic work!!!
Thank you Sonny for your super amazing video. I love all that you do for developers. Every time I code with you I feel great energy and flow. Thank you once again, bro. Czechia is with you!
typescript is used or firebase is used in this video for backend??
please answer !!
@@kedarvyas7134 This tutorial is TypeScript and FireBase. There is Next.JS which is FullStack = frontend+backend
Definitely here for more AI tutorials. Great video as always, Sonny!
typescript is used or firebase is used in this video for backend??
please answer !!
great job papa react love from Ethiopia
Your passion and work are very impressive and it has been helping me a lot. Thx a lot.
Great code along, thanks for sharing this. learning loads from your tutorials. Keep up the great work!
This was massive 🔥🔥
this is so sick build
I went through the whole thing and learned a lot. Thank you for the wonderful content!
Uniquely beautiful content 🔥🔥🔥
Maaaaan this is great. Thank you!
From Russia I really like your videos
Amazing. Thanks, Sonny! You really should have 2-3x the subs that you do!
This is best tutorial ! Please build part 2 of this with more advanced features. Also include the capability to display images as output of BOT.
typescript is used or firebase is used in this video for backend??
please answer !!
What I like about sonny is?
that he guide in proper way
Also paying for repo is good point otherwise people can just put these project inside there resume without implementing it.
pretty excited for this...going to start it today.
You got this! It’s a lot of fun!
How did it go? I just finished mine and have found a few bugs. Was wondering how you solved them.
Great man🎉
I just love your intro 😄
On 2:48:21 I'm always getting "ChatGPT was unable to find an answer to that! (Error: Request failed with status code 429)" 😟 Anyone know how to fix? It never worked even with first request and I havent sent any request before this point.
Same
Fix it?
@@autoauto3021 No, I still get the same thing
Have you been able to fix this
Any fix on this one guys?
Off the chain😁
sonny you are the best. Great project.
This build is sick 📈🔥
This was a marvelous build. Thanks for sharing..
Greetings from Brazil, esse cara é muito foda! O entusiasmo dele é contagiante.
🙏🏽🔥
Hi @Sonny would you please let me know how did you resize the browser windows in 3 different sizes so quick : ) at video time 1:42:21 Thanks
You are awsome bro just completed this build with you video side by side 🥳🥳🥳
Bro can you please make a video on chat app in react native with stream chat as a backend really waiting for that bro😃😃
typescript is used or firebase is used in this video for backend??
please answer !
can u please share ur github link for this project
@@kedarvyas7134 Sorry for getting late to reply firebase is just used as backend to store chat data and providing authentication to users
@@SaquibAnsariofficial01 I can share but can you please confirm that will it going to land me in copyright issue or not?? if not then i will share it to you definately
@@harveerSingh-iy9xz can you share ur github link me too. And can you tell me which version of next js you used?
I will be trying to make a react native app using your video as reference.. thanks for this video
Amazing video Sonny, thank you. In firestore, the collections inside the document are not deleted, is there a way to do it?
It is deleted only when there are no messages, but if there are messages the information persists.
Same here
Great job! Thank you a lot!
My chat have problems with little bit complicated requests. If I ask distance from Earth to the Moon - it answers normally.
But if I ask "Write VAST Tag using SIMID Framework" - I had no answer and 504 error.
Usual ChatGPT give my correct answer without problems.
Fantastic video! Thank you very much!!!
Almost 200K 🔥🔥
Got stuck on client IDs. Looks like your GCP had an autogenerated OAuth client ID that matches your firebase client ID.
Mine didn't generate that -- tried creating new oAuthClientID in GCP then replacing the firebase one. Didn't work!
Any tips?
if youre running into this -- click the little question mark icon next to web SDK configuration in firebase google sign-in method..
then you click the blue link to GCP and itll get the autogenerated projects to show up
@@parkerrex can't thank you enough bro. I was stuck in this error for about 2 days. Then i read your comment. Now this error is resolved.
@@parkerrex Legend! Saved me a day worth of work at least! Thank you.
just replace the old GOOGLE_ID and GOOGLE_SECRET in you .env file
Ingenious 🎉❤
One thing I dont understand in your build with firebase, is the useCollection hook in the frontend.
I suppose the hook makes sure to not leak sensitive data like Firebase API key to the frontend right?
I have same doubt on this... I've searched about this for an hours but couldn't have clear answer. Can anyone have an answer on this?
@@deeepxhit Here comes ChatGPT's answer:
The useCollection hook in Firebase is a React hook that is used to interact with a collection in a Firebase Cloud Firestore database from the frontend. It does not directly prevent the leakage of sensitive data like the Firebase API key to the frontend.
However, Firebase does provide security rules that can be configured to control access to data in Firestore. These rules specify who can access the data and what actions they can perform on it. By properly configuring security rules, you can ensure that sensitive data is not leaked to unauthorized users.
In addition, Firebase also provides a way to store sensitive data securely using the Firebase Functions service. Firebase Functions allows you to write server-side code that can interact with your Firebase project, including accessing sensitive data that should not be exposed to the frontend.
So, while the useCollection hook itself does not prevent the leakage of sensitive data, Firebase provides several mechanisms that can be used to ensure that sensitive data is not exposed to unauthorized users.
typescript is used or firebase is used in this video for backend??
please answer !
Hey Sonny! Your projects are extremely good! Pls make Telegram clone!
Love your work, awesome
I love this man
Thank you sir, I learnt a lot. By the way how to format the replies same with chatgpt that it automatically format like code, list or table
This happened to me: 1:13:04
when I successfully login, the page still rendered the Login component.
How can I solve this?
Hi, Firstly thank you for this amazing build. I have been coding along and got stuck in Openai because it is not responding the askQuestion not in Firestore database not in web, answer is not showing in messages section. what should I do? please help!!!!
sameee
same
typescript is used or firebase is used in this video for backend??
please answer !
@@kedarvyas7134 Firebase
@@kedarvyas7134 firebase
@Sonny Can you do a video on 404 and 500 error pages in app directory? Especially in context of nested dynamic routes for i18n routing :)
beats slapss so haaaard
Amazing content. Really educative.
Thank you so much! Enjoy!!
@InfraiNFORM So I actually made it a little further before I had problems, It wasnt until trying to bring the messages into the application durring the 2:53:33 Building the Message Component section
I start to get the error at run time :
Unhandled Runtime Error
Error: Objects are not valid as a React child (found: object with keys {_id, name, avatar}). If you meant to render a collection of children, use an array instead. Up until this chapter everything worked as expected, the app will still run showing the front page, login logout, i can create new chats and navigate between chats, how ever if i send a message i get this error, if i attempt to navigate to any chat with a message history I get this error, and if i delete any chat that has a message history I get the error how ever the chat does delete and if i refresh the homepage it will be gone I have gone back from 1:23:34 Implementing Create New Chat Functionality and compared my code to sonnys twice, I could not find any differences the second run through , i have also been over multiple sections between these 2 time stamps several times
I did have issues with the next auth api file being in the app directory I had to create a pages directory and place it in the same structure in there and things worked well, I have tried dropping the askQuestion api file into both /app/api and /pages/api; i hhave also tried calling that as /app/api/askQuestion /pages/api/askQuestion & /api/askQuestion with the file in both locations,
I now believe that this is again due to the changes between next 12 and 13 furthermore 13.4 and I was able to get the toast notifications working where everyone else seems to be stuck at
hey im having some issues with this project from 2:48:00 minute also not able to fetch data from open ai api can you resolve those if you've made upto little further in this project ?
Same
This app doesn't seem to be work now, I made it along with you on the live stream it was working when, but now suddenly it crashes when chatgpt did something with openai API key configuration ig
Can you please make video about that, its now working now or is it just me whose app is not working?
Just you
Thank you sonny
This project able to create free
Hey!
'SessionProvider ' cannot be used as used as a jsx component.
It's return type 'void' is not a valid jsx element.
idk if this just an error for me but to use the OpenAI api I had to connect my credit card to my account. The error code I kept getting was 429 and going into the openai discord I searched up my error code and looked for solutions. Seems like the only solution.
Excellent course and video.
07/08/2023
Hi Sonny , You are amazing !
I got stuck in the auth part, when I click on the "SignIn" button that links to Google I am sent to Next's 404 and not to google account 404.
1:09:42
Does anyone know what could be the reason for this?
found a solution, it was because I requested by localhost:3001 due to localhost:3000 running another project. I repeated the same with localhost 3000 and with the same email.
have you find a solution? have the same problem
If you are using the src directory , make a new pages directory on the root of the project , then move the [...nextauth].ts file to pages/api/auth/ , Hope This helps :)
Keep smile and observe
Has anybody had issues with setting up firebase security rules? Not sure why normal security rules are not working for his example
Is there any way to only use 1 model? I want to use gpt-3.5-turbo
Brilliant! Love these builds!
how to add a dark/light mode switcher in this?? i tried for hrs but failed
I really like your content. Can you please help me with this error 'yarn' is not recognized as an internal or external command,
operable program or batch file.
can you edit the prompts like in the current chatgpt?
i got this error in firebase message collection how to fix them "ChatGPT was unable to find an answer for that! (Error: Request failed with status code 429)"
I guest it's a problem from your openAI API key, check your environment variables very well and check where you used the API key as well, I gotten the same error cause I misspelled a variable name ....check it clearly
@@Lamsa_TV i got this ChatGPT was unable to find an answer for that! (Error: Request failed with status code 404)
@@rajuraman5773 how did you solve it ?
Es going to be safe and applied for the reply from the other guy!
15:37 when I run this command in the terminal it creates the project with npm although I already have yarn installed. How did he create the project with yarn instead?
hay sonny this is very good application learning much more but i want to you also add code editor functionality