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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 30

  • @mangleart
    @mangleart ปีที่แล้ว +1

    I'm super fascinated with what openai is doing with ai, but my knowledge seems to be lacking. Please keep making content.

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว +1

      Thanks for the feedback. Sounds like you’re doing the right thing learning new stuff!

    • @mangleart
      @mangleart ปีที่แล้ว

      @@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.

  • @malkhaz.jokhadze
    @malkhaz.jokhadze ปีที่แล้ว +3

    Would like to see more of these like python videos.

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      Thanks for the feedback

  • @AG08380
    @AG08380 ปีที่แล้ว +1

    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

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      What's the error you see?

    • @AG08380
      @AG08380 ปีที่แล้ว

      It says I have no api key is being used in code

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      @@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.

  • @tnctnctnctnc
    @tnctnctnctnc ปีที่แล้ว

    Hello, i'm working on implemanting the chatbot in twitter do you have any idea on how to proceed ?
    Despite that, really good video

    • @tnctnctnctnc
      @tnctnctnctnc ปีที่แล้ว

      And i have a problem with the openai import because apparently the Completion isn't imported..

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      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

  • @alarconfilms1
    @alarconfilms1 ปีที่แล้ว

    Thanks for yours videos, I'm trying but I have this message:
    ModuleNotFoundError: No module named 'openai'

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      Sounds like an issue with installing dependencies using pip.

  • @nicroux
    @nicroux ปีที่แล้ว +1

    number 16

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      🔥 Thanks for subscribing!

  • @QuanZhenShi
    @QuanZhenShi ปีที่แล้ว

    Like your video very much, very helpful! Do you freelancing and can I contact you for a job?

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      Thanks! Glad you found it helpful. I'm not freelancing right now.

  • @NoS-TrA
    @NoS-TrA ปีที่แล้ว

    Like video 3 months ago chatGTP? if it came out on november 29 xD

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      Yeah! It was great timing. I got lucky. This is my most popular video so far.

  • @VaibhavShewale
    @VaibhavShewale ปีที่แล้ว +1

    seems interesting but i would rather make my own bot rather then it to depend on chatgpt

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      That's cool! To build your own custom chatbot, I would look up how to build NLP (natural language processing) models.

  • @markhalonen
    @markhalonen ปีที่แล้ว

    Can you “teach” this chat bot anything?

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      Yes! You can fine-tune the model with your own training data. More info here: beta.openai.com/docs/guides/fine-tuning

  • @StupidInternetPeople
    @StupidInternetPeople ปีที่แล้ว

    What I want to do today is see an end to creators playing the stupid face thumbnail game 😂

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      What? You don't like my 🤡 face?

    • @StupidInternetPeople
      @StupidInternetPeople ปีที่แล้ว

      @@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? 😂

  • @forexhubio
    @forexhubio ปีที่แล้ว

    Can you teach me coding can you message me

    • @SkiesDev
      @SkiesDev  ปีที่แล้ว

      What are you interested in learning?