I'm not through it yet, but this might be the most useful tutorial I've seen. The reason this is so useful is because you're not just showing what to do, you're showing how to learn. I'm new to coding since ChatGPT (as many of us are), and I had no idea about so many of these resources.
@hamedbahram
3 ай бұрын
I'm glad to hear you found it useful. Thanks for your comment!
@amankch
7 ай бұрын
Short, Informative and to the point.
@hamedbahram
7 ай бұрын
Thanks!
@oghenefejiroprinceimene6090
6 ай бұрын
powerful lesson. exactly what i was looking for... thank you
@hamedbahram
6 ай бұрын
Glad it was helpful!
@fedecampos4476
3 ай бұрын
Great tutorial! Only one suggestion: Please use slit screen instead of covering halft of your code with your browser window. Again, amazing tutorial regardless.
@hamedbahram
3 ай бұрын
Thanks! appreciate the feedback.
@martinsloan5760
7 ай бұрын
I just built something similar with Laravel and Livewire. After 10+ years of using Laravel while constantly evaluating new competing tech, I think Next.js is the only thing that's come close to Laravel in terms of community, content, polish, packages, etc. Next.js + shadcn is a powerful combination. Out of curiosity, what package would you use to render markdown in realtime? That was one of the larger hurdles of the Laravel/Livewire version. Thanks for the lesson.
@hamedbahram
7 ай бұрын
No worries! I agree NextJs is awesome. I've used react-markdown for rendering markdown.
@Gopster2009
6 ай бұрын
Thanks Hamed, excellent video! I've watched several of your videos and they are all very helpful. I like the idea of using server actions when an api isn't necessary. Do you think it's possible to stream the ai completion text from a server action instead of an api? I'm still new to React and Next.js. I'm not sure if this is possible or if it would be a good idea. Thanks again for the great content!
@hamedbahram
6 ай бұрын
Good question! Yes you can stream a response back from server actions. There is an experimental function in the `ai` SDK that allows you to stream from server action. Read more here → sdk.vercel.ai/docs/api-reference/streaming-react-response
@DeepLook1
7 ай бұрын
i love the way you teaching . thank you very much .
@hamedbahram
7 ай бұрын
Glad to hear that!
@lalaniwerake881
2 ай бұрын
very helpful - Thank you
@hamedbahram
2 ай бұрын
My pleasure!
@uncoolcoder
7 ай бұрын
great! very crisp and informative. I will try it.. a quick question, do we have to deploy on vercel , can we have our own servers?
@hamedbahram
7 ай бұрын
Glad to hear that! No you don't need to deploy to Vercel necessarily.
@uncoolcoder
7 ай бұрын
@@hamedbahram Thank you !
@git-sujon
7 ай бұрын
Great explanation, Waiting for next video ...
@hamedbahram
7 ай бұрын
Thanks! Stay tuned...
@lenatoo972
4 ай бұрын
Bro. I don't know how I would do without you. It's not the fist time. You're like my wife. Thank you.
@hamedbahram
4 ай бұрын
Glad to help
@austindonovan4162
3 ай бұрын
How do you go about fixing the OpenAIStream Deprecation? I'm curious as to what they replaced it with, and how we would update that to reflect the new model.
@hamedbahram
3 ай бұрын
I'd have to look into that update.
@edgargut
7 ай бұрын
This is great! Do you how to create an input or textarea that grows with the user's input? Just like in ChatGPT?
@hamedbahram
7 ай бұрын
Good question 🤔 Haven't done it before. Will give it a try, stay tuned.
@edgargut
7 ай бұрын
@@hamedbahram 🫶
@hulashmahto99
7 ай бұрын
Good information
@hamedbahram
7 ай бұрын
Thanks!
@jackbauer322
3 ай бұрын
can you or do you have a tutorial for handling a front end in next.js and a backend with Azure OpenAI and fastapi ... how to handle the streaming to forward from backend to frontend ?
@hamedbahram
3 ай бұрын
I don't have that currently but could be an interesting usecase. I'll keep that in mind.
@jackbauer322
3 ай бұрын
@@hamedbahram Thank you ! because I currently have a backend in fastapi that gives a long answer in the log but doesn't forward it to the frontend in next.js ... Maybe i don't handle the timeout and/or streaming properly !
@pro-ik4rw
2 ай бұрын
do I need to buy the subscription in order to use API key ?
@hamedbahram
2 ай бұрын
Unfortunately yes, openAI API is not free but pretty affordable.
@pro-ik4rw
2 ай бұрын
@@hamedbahram THANKS SIR FOR REPLING I THINK YOU WILL NOT MAY YOU ALSO GET GUIDANCE WHEN YOU STUCK ANYWHERE
@kartik1311
3 ай бұрын
did not work for me what to do
@hamedbahram
3 ай бұрын
What is the problem you're facing?
@kartik1311
3 ай бұрын
@@hamedbahram when i send message it keeps on refreshing
@kartik1311
3 ай бұрын
and github code is a little diffrent why?
@kartik1311
3 ай бұрын
@@hamedbahram when i post message it refreshes
@d4rzk252
7 ай бұрын
Good video, but I can't use this, because it is paid. :/
Пікірлер: 43