Build a mini ChatGPT with Python and OpenAI
ฝัง
- เผยแพร่เมื่อ 27 มิ.ย. 2024
- We'll use Python and OpenAI to build a program that can generate ideas, answer questions, come up with tweets, and more.
This command-line app will be very similar to the interface provided by ChatGPT. TIP: Use the latest model "text-davinci-003" to get the best results.
⭐️ Timestamps ⭐️
0:00 | Intro
0:17 | Demoing the app
2:28 | How to build the app
5:34 | Outro
Follow along with this tutorial, and get copy/pastable code snippets from this blog post 🚀
www.skies.dev/py-openai
ChatGPT
chat.openai.com
Follow me on Twitter 👇
/ skies_dev
#python #openai - วิทยาศาสตร์และเทคโนโลยี
I'm super fascinated with what openai is doing with ai, but my knowledge seems to be lacking. Please keep making content.
Thanks for the feedback. Sounds like you’re doing the right thing learning new stuff!
@@SkiesDev i'm aiming to 'create' a personal ai that can remember me and my preferences, and learn my preferences. for instance, if i wish this ai to run dalle, it would know to omit picasso.
Would like to see more of these like python videos.
Thanks for the feedback
When I get to the completions = openai.Completion.create(prompt =prompt) it says I get an error for the prompt=prompt I’m running this on vs code can you help
What's the error you see?
It says I have no api key is being used in code
@@AG08380 It's possible the API key is not being picked up by your environment. Assuming you're on a unix system, you can try running `echo $OPENAI_API_KEY` and see if your API key shows up. Otherwise, maybe retry the steps of setting the API key in your .zshrc (or similar). After saving the file, you'll need to restart your shell for the API key to be picked up in your environment.
Hello, i'm working on implemanting the chatbot in twitter do you have any idea on how to proceed ?
Despite that, really good video
And i have a problem with the openai import because apparently the Completion isn't imported..
Hmm. Maybe it's an issue with installing OpenAI to your virtual environment? Did you do the steps here? th-cam.com/video/fmZSsTKFWm0/w-d-xo.html
Thanks for yours videos, I'm trying but I have this message:
ModuleNotFoundError: No module named 'openai'
Sounds like an issue with installing dependencies using pip.
number 16
🔥 Thanks for subscribing!
Like your video very much, very helpful! Do you freelancing and can I contact you for a job?
Thanks! Glad you found it helpful. I'm not freelancing right now.
Like video 3 months ago chatGTP? if it came out on november 29 xD
Yeah! It was great timing. I got lucky. This is my most popular video so far.
seems interesting but i would rather make my own bot rather then it to depend on chatgpt
That's cool! To build your own custom chatbot, I would look up how to build NLP (natural language processing) models.
Can you “teach” this chat bot anything?
Yes! You can fine-tune the model with your own training data. More info here: beta.openai.com/docs/guides/fine-tuning
What I want to do today is see an end to creators playing the stupid face thumbnail game 😂
What? You don't like my 🤡 face?
@@SkiesDev The title indicates you’re going to show us how to write some code. Did this cause you great surprise? Are you just a lemming pretending you’re Mr Beast? Or simply getting ready to fellate someone and thought this will be an appropriate thumbnail to entice viewers to watch my coding video? 😂
Can you teach me coding can you message me
What are you interested in learning?