Skip to content

ChatGPT in Python for Beginners – Build A Chatbot



Want to get more out of ChatGPT? Get my free E-Book: https://bit.ly/250-usecases In this video, I’ll teach you how to create your …

33 thoughts on “ChatGPT in Python for Beginners – Build A Chatbot”

  1. Complete beginner here, I tried doing this but I can't install the pip open ai. This is what I get:
    PS C:UsersericpDesktopcode example> pip install openai

    pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

    again.

    At line:1 char:1

    + pip install openai

    + ~~~

    + CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

    How do I fix this?

  2. Great video! Very clear explanation. I ran into this error message when I tried running the simple app. ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3.
    Any thoughts on how to resolve? Thank yoU!

  3. That's awesome, thank you for the good explanation. Regarding the last example, does this mean that I can also put more info about the chat bot persona in that first line? Like for example a whole biography, topics it is dealing with or also examples in which tonality the answers should be? Thanks again.

  4. Hey, I have a question about a recently released API. It's available for free for the first 30 days, but after that, there is a charge. If I develop an application using that API, will I be limited in terms of the number of query pushes during the 30-day free period? For example, is there a restriction like a maximum limit of 40 queries allowed?

  5. Excellent !!! very good indeep, i like a 20% cut through all steps to get the results, and thats the fastest way i learn, and you did that exactly !!! so i actually understood it all in 14m. Really amazing content !

  6. This was great! My follow up question would be how do I get this to a website with a custom domain so I can share this with an easy to remember to domain name?

  7. Thank you for the video, but I have encountered a problem, I have installed everything including successfully installing "pip install openai", however, when I click run, it says no moduel name open ai was found

  8. could you fix my bug? It appears when I run 01chatgpt simpe
    Traceback (most recent call last):

    File "c:UsersACERDocumentsData ScienceChatGPT API Tutorial1 chatgpt simple", line 5, in <module>

    completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "what is penguin "}])

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:UsersACERAppDataRoamingPythonPython311site-packagesopenaiapi_resourceschat_completion.py", line 25, in creat

    e

    return super().create(*args, **kwargs)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:UsersACERAppDataRoamingPythonPython311site-packagesopenaiapi_resourcesabstractengine_api_resource.py", line

    153, in create

    response, _, api_key = requestor.request(

    ^^^^^^^^^^^^^^^^^^

    File "C:UsersACERAppDataRoamingPythonPython311site-packagesopenaiapi_requestor.py", line 230, in request

    resp, got_stream = self._interpret_response(result, stream)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:UsersACERAppDataRoamingPythonPython311site-packagesopenaiapi_requestor.py", line 624, in _interpret_response

    self._interpret_response_line(

    File "C:UsersACERAppDataRoamingPythonPython311site-packagesopenaiapi_requestor.py", line 687, in interpret_response

    line

    raise self.handle_error_response(

    openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.

  9. Awesome tutorial bro! Kudos to your great effort in making very easy to understand tutorial!! Is there any way to prevent prompt injection by the user

Comments are closed.