EASIEST way to use Chat-GPT in Python | START HERE

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 18

  • @TomsTechAcademy
    @TomsTechAcademy  8 месяцев назад +1

    ❗When you create a new OpenAI account, you receive some free credits which are valid for 3 months. It's very rare to run out of credits, though if you're using an account which has been created more than 3 months ago your credits will be expired and you receive an error. The only solution is to add a credit card to your account. You don't need the "plus" account if you limit requests to Chat-GTP-3.5

    • @dominicdomingo9654
      @dominicdomingo9654 6 месяцев назад

      Wow! Thanks for the information, I tried it with my account (not new) but sadly it returns a message of I need to pay something.

  • @mrpssmovies
    @mrpssmovies 8 месяцев назад +1

    Thankyou so much man after surfing the whole internet I found this video and was my last hope I have decided to quit if it had not worked but it worked truly.thanks a lot.

    • @TomsTechAcademy
      @TomsTechAcademy  8 месяцев назад

      Thank you for the kind words 🙏 I’m glad my video was useful for you! Happy automation 🚀

  • @joeblow229
    @joeblow229 8 месяцев назад +3

    So, this doesn't work for free users. This is because if you created your account more than three months prior to using the API key, your free tokens have expired (from the OpenAI article regarding API limits). I ran into the same error as everyone else in the comments, the only solution seems to be to pay for it.
    Wow, and OpenAI is so lame I can't even manage to add my billing information to PAY for their service. I keep getting a "slow down" error message, which I guess relates to their payment processor. Kind of ridiculous, I can use the free chat all day long, but can't actually pay them to use the API.
    Can you post an alternative AI that we can do the same things with?

    • @yashwanthkumar7709
      @yashwanthkumar7709 8 месяцев назад +1

      Indeed brother. I was going through the same issue and then realised I don't get any API connection until i'm purchasing the premium

  • @البداية-ذ1ذ
    @البداية-ذ1ذ 9 месяцев назад +2

    Thanks alot but why when i try to run your code in my spyder id ,show me this error "
    RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}} please advice

    • @TomsTechAcademy
      @TomsTechAcademy  9 месяцев назад

      Hi, thanks for your comment. It seems you have made too many requests in a short time. In case you/your organization has put a limit on the usage, consider increasing the limit. You can read more in this article: help.openai.com/en/articles/6891831-error-code-429-you-exceeded-your-current-quota-please-check-your-plan-and-billing-details
      More information about rate limits: platform.openai.com/docs/guides/rate-limits?context=tier-free

    • @Asad_Ullah
      @Asad_Ullah 9 месяцев назад

      actually you have to create a new chatgpt account with a new email and then generate new api key

    • @mathisx468
      @mathisx468 9 месяцев назад +2

      @@TomsTechAcademy I got the same error. I tought it was free.. do you have to pay for it?

    • @dominicdomingo9654
      @dominicdomingo9654 6 месяцев назад

      @@mathisx468maybe you are using an old account which might your access token is already expired, if that so you should pay for it

  • @f1uf
    @f1uf Месяц назад

    I did pip install openai, but it says in my editor that there is no module called openai

  • @pysohan
    @pysohan 8 месяцев назад +1

    After eyeing 2 hours on the yt, I have got the right one. Actually, this is the first one that works for me from your channel. And over the night, other videos will be helpful hopefully!

    • @TomsTechAcademy
      @TomsTechAcademy  8 месяцев назад +1

      Thanks for the kind words, glad my video was helpful for you :) happy coding!

  • @fizikaman
    @fizikaman 9 месяцев назад

    Hello there. I have tried your code and got an error in this line:
    chat_completion = client.chat.completions.create
    Actually, i have already tried a lot of different code examples and all of them have the same trouble with API key.
    For example:
    OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

    • @TomsTechAcademy
      @TomsTechAcademy  9 месяцев назад

      Hi, it seems you're having trouble with passing the API key. Can you please follow the instructions in this video to generate an API key and then add the key to the code from the video?
      ruclips.net/video/aVog4J6nIAU/видео.html

    • @fizikaman
      @fizikaman 9 месяцев назад

      @@TomsTechAcademy i did it twice. My friend did the same steps but nothing doesn't work.
      I guess the problem is in the API key

    • @yashwanthkumar7709
      @yashwanthkumar7709 8 месяцев назад +1

      @@fizikaman put the api key in between ' '