Build your own ChatGPT with GPT-4 and Vercel AI in 10 minutes! Stream responses and custom prompts!

  Рет қаралды 2,660

Build SaaS with Ethan

Build SaaS with Ethan

Күн бұрын

Пікірлер: 25
@GAllium14
@GAllium14 Жыл бұрын
Best video on this topic ❤❤❤
@GAllium14
@GAllium14 11 ай бұрын
Can you make a video of Chat with pdf using vercel AI sdk and Opensource models
@rmoddel
@rmoddel 9 ай бұрын
@ethan_mick Awesome video! Do you have a video or advice how to hook this simple app into proprietory data sets and repsond to answers based on information in the data sets?
@luckystrike5882
@luckystrike5882 Жыл бұрын
Great video! I'm so glad I found your channel. Do you have a style guide you use? I see you use eslint but do you also use a formatter? Thanks :)
@ethan_mick
@ethan_mick Жыл бұрын
Yep, I use Prettier (prettier.io/) for all my formatting. I mostly use the defaults with some small tweaks: No semicolons, Spaces, and 2 space indents.
@greent4217
@greent4217 Жыл бұрын
Awesome stuff, man. Exactly what I needed to know!
@ethan_mick
@ethan_mick Жыл бұрын
Thanks!
@emmacyril5204
@emmacyril5204 Жыл бұрын
hey, great tutorial, kindly, i have one question, if i want GPT to respond based on the different json files i have; like 2 different json files, how can i work that out with this tutorial?
@ethan_mick
@ethan_mick Жыл бұрын
You can do it one of two ways: 1. Put it in the prompt. Say, "If the JSON contains XYZ, then do this. Otherwise, do that." 2. Make two System prompts and check which JSON is which, and use the appropriate prompt. If you know the exact structure of your JSON, this way will give you better results.
@emmacyril5204
@emmacyril5204 Жыл бұрын
@@ethan_mick Thank you for your response, i will try that out,
@t0ObwdrG
@t0ObwdrG Жыл бұрын
You're an amazing communicator and teacher. You should consider creating a Discord server asap!
@ethan_mick
@ethan_mick Жыл бұрын
Thanks! It's on the to-do list, just don't want it to consume too much energy.
@frackinfamous6126
@frackinfamous6126 Жыл бұрын
LFG. We ready for that AI colab yet? I have some great plans haha. I’ll email you today. Awesome work lately man!!
@ethan_mick
@ethan_mick Жыл бұрын
I have some sweet content planned for playing with the Llama 2 and open source models. These models let you tweak them behind the scenes without needing to use OpenAI, it's awesome
@darzyx6986
@darzyx6986 Жыл бұрын
Awesome video, thanks for sharing. Any insight as to how well this works in production when deploying on Vercel? I implemented something similar for a pet project in Node but I'm wondering if I could have just gone with NextJS for my backend too. Specifically, what if the stream takes a long time (say 45 seconds) to finish, does that cause issues? Edit: to be more specific, I ask the question because of Vercel's serverless/stateless nature.
@ethan_mick
@ethan_mick Жыл бұрын
Specifically the `edge` runtime makes this work really well on Vercel. vercel.com/docs/concepts/limits/overview The edge runtime let's you stream for... forever, actually: > Edge Functions provide an alternative that do not have a maximum execution timeout and that also allow you to continue streaming responses. So when you setup your app to run on the edge network it'll stream the entire response.
@404Thoughts
@404Thoughts Жыл бұрын
how do we force it to only answer questions in the scope given? and also not respond with the generic As an AI ......
@ethan_mick
@ethan_mick Жыл бұрын
Welcome to the world of Prompt Engineering!! Basically, you can change the System Role to give your AI a whole new persona. Tell it to only answer as a persona, and to never say they are an AI. For example, I've turned GPT-4 into a medieval farmer for a game and if I try to jailbreak they call me crazy and end the conversation. It's awesome.
@404Thoughts
@404Thoughts Жыл бұрын
@@ethan_mick all of this is kind of new to me, do you have any tutorials on a process like that? Thanks in Advance
@ethan_mick
@ethan_mick Жыл бұрын
@@404Thoughts I'll add a Prompt Engineering video to my to-do list, but I don't have one yet. Stay tuned!
@amanbhatti3817
@amanbhatti3817 Жыл бұрын
Hlo bro i am facing a problem on vercel. In last month i deploy my project on vercel without make git repo then now i want to download my project source code. Please tell how i download project source code
@ethan_mick
@ethan_mick Жыл бұрын
Hey, you could give this a try: github.com/vercel/vercel/discussions/5783 (No affiliation, just found it with some searching).
@fontenbleau
@fontenbleau Жыл бұрын
I always say everywhere, don't use openai api, don't help training their systems. Corpos which using bad human rights situation in poorest countries to collect biometrics for fake cryptomoney is obviously evil corpo.
@ethan_mick
@ethan_mick Жыл бұрын
Do you have an alternative you suggest?
@fontenbleau
@fontenbleau Жыл бұрын
kzbin.info/www/bejne/l6nCg2evr5aKra8
Build an AI RAG Application with LangChain & Next.js
33:34
Dave Gray
Рет қаралды 27 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 85 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 70 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 4,1 МЛН
Hands on with the Vercel AI SDK 3.1
13:04
Vercel
Рет қаралды 36 М.
10X Your Code with ChatGPT:  How to Use it Effectively
17:14
Dave's Garage
Рет қаралды 344 М.
The easiest way to build an AI chatbot in NextJs
24:29
Hamed Bahram
Рет қаралды 9 М.
ChatGPT AI Voice Chatbot Build Using React and FAST API #chatgpt #ai
2:40:30
Getting Started with Vercel AI SDK & AI Playground
12:29
Developers Digest
Рет қаралды 5 М.
the truth about ChatGPT generated code
10:35
Low Level
Рет қаралды 231 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 85 МЛН