Use OpenAI's API for Free

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 46

  • @brutely9718
    @brutely9718 7 місяців тому +21

    Nonetype" object is not subscriptable .. getting type error

    • @yashagarwal99
      @yashagarwal99 7 місяців тому +1

      Same error

    • @ihitasinha990
      @ihitasinha990 7 місяців тому +2

      only works for US based IP, if you're not in the US, use a VPN

    • @brutely9718
      @brutely9718 7 місяців тому

      @@ihitasinha990 no I'm using vpc from US. The error was actually that I need to follow farmat it seems. Anyways I checked nodejs file what's really causing but I'm unable to find it.

    • @brutely9718
      @brutely9718 7 місяців тому +3

      Thanks, but even though if I use vpc (ec2) from US it's not possible.. it says you are not sending request in format. If I print whole json

    • @sscoder170
      @sscoder170 7 місяців тому +2

      @@ihitasinha990not working in USA also getting same error

  • @deepakp3412
    @deepakp3412 6 місяців тому +7

    Its not working . print(completion.choices), it printed None. Nothing was fetched. or maybe some error.same problem

  • @НиколаГаврић-ш9э
    @НиколаГаврић-ш9э 2 місяці тому +25

    Naah dude. Change the title and don't waste anyone's time...

    • @Informatro
      @Informatro 2 місяці тому

      Thanks dude

    • @Tropictopic69
      @Tropictopic69 9 днів тому

      Bro help me plz

    • @НиколаГаврић-ш9э
      @НиколаГаврић-ш9э 9 днів тому

      ​@Tropictopic69 Not sure how I can help you...
      If you are searching for a free gpt 4 or something similar, the best way is to train your own model.
      There are plenty GitHub repositories that explains it much better. You can even create videos, pictures etc with them.

    • @sky-yourlittlevirusfriend9145
      @sky-yourlittlevirusfriend9145 7 днів тому

      @@Tropictopic69 no xd

  • @unclecode
    @unclecode 8 місяців тому +8

    Interesting, just its almost 3 to 4 times slower, due to some network handshaking it does before sending it to server

    • @bonsaiilabs
      @bonsaiilabs  8 місяців тому +3

      Interesting. In my experiments, it was slow that directly hitting OpenAI API, but that's also because a proxy is sitting in between.

    • @rinokpp1692
      @rinokpp1692 7 місяців тому

      Hey

  • @avinabdas2864
    @avinabdas2864 3 місяці тому +1

    How you are running docker in your VS. What other extension I need to install

    • @bonsaiilabs
      @bonsaiilabs  3 місяці тому +1

      The docker has been running locally

  • @mountINEER
    @mountINEER 6 місяців тому +3

    is it available for TTS AND IMAGE GENERATION also ??

    • @bineetjha2268
      @bineetjha2268 5 місяців тому +1

      no it isn't available for this this image generation

  • @ashikshuvo7131
    @ashikshuvo7131 3 місяці тому +1

    the local docker solution is not working any more

  • @playmaker2404
    @playmaker2404 2 місяці тому

    the problem is 1st they are not using open-ai models. 2nd its model that has data from 2023 so no updated data is there

  • @mohamedsameer3549
    @mohamedsameer3549 6 місяців тому +3

    Hi i have done the required setups and using the public endpoint, I have submitted the prompt and I am receiving response as "An error occurred. please try again. Additionally, ensure that your request complies with OpenAI's policy." is there anything I missed or should I have to change.

  • @paulos2024
    @paulos2024 Місяць тому

    i make use of vscode, can't i make use of that instead? (anyway i'd have to get docker i guess)

  • @rizmyabdulla
    @rizmyabdulla 6 місяців тому +1

    Is it possible to fine tune this GPT model with this reverse api?

    • @bonsaiilabs
      @bonsaiilabs  6 місяців тому +1

      You won't be able to finetune since you are using OpenAI model. Hope this helps.

    • @Waseem-f7n
      @Waseem-f7n 6 місяців тому

      yes it is. you can finetune or attach your docs, pdfs, SQL database or any database. then it'll give answer from both your stuff and chatGPT.

    • @RahulS-d3m
      @RahulS-d3m 5 місяців тому

      @@Waseem-f7n how? any ref

  • @SargunaNarayanaSachinS
    @SargunaNarayanaSachinS 21 день тому

    Can't understand the final step can you please explain it clearly

  • @naumanahmed4174
    @naumanahmed4174 6 місяців тому +2

    Following all the steps in this video , heres what i got : raise APIConnectionError(request=request) from err
    openai.APIConnectionError: Connection error.

  • @ronbytuan
    @ronbytuan 3 місяці тому +1

    It's still error 429 and have to buy credit :)

  • @Чумак-щ8и
    @Чумак-щ8и 7 місяців тому +3

    Is it possible to do free gpt but like python library?

    • @bonsaiilabs
      @bonsaiilabs  7 місяців тому +2

      Yes, at 3:57 of this video, you see the Local Endpoint and Public Endpoint, use any of these in your python code. For making REST api calls, refer to platform.openai.com/docs/api-reference/making-requests. Use the Urls, from the timestamp mentioned in this comment, and any API key. This should work.

    • @Чумак-щ8и
      @Чумак-щ8и 7 місяців тому

      @@bonsaiilabs Thanks!

  • @Epirium
    @Epirium Місяць тому +2

    This is not working, please take down this video

  • @kirangkumar057
    @kirangkumar057 6 місяців тому +2

    Its not working . print(completion.choices), it printed None. Nothing was fetched. or maybe some error. Please help

    • @harshavardhangunupuru4958
      @harshavardhangunupuru4958 6 місяців тому

      yeah I got the same error, I'm in windows tried both docker way and also by pc/windows.
      I got the same error , maybe something was broken in the code or openai stopped this proxy lol
      print(completion.choices[0].message.content)
      TypeError: 'NoneType' object is not subscriptable

  • @QorQar
    @QorQar 8 місяців тому +2

    Has the free class been cancelled?openai api key

    • @sheepythegamer
      @sheepythegamer 8 місяців тому +1

      Pretty sure all of the fresh keys I hoarded suddenly wouldn't work when I knew they had credits

  • @kimberleykennedy2884
    @kimberleykennedy2884 15 днів тому

    YEAH ITS LIKE A YAP SESSION BONESALLI MAKE BETTER VIDEOS.

  • @InternetWarrior
    @InternetWarrior 4 місяці тому

    Whata a hell? Man it is looks lika your advertising docker >:[

    • @bonsaiilabs
      @bonsaiilabs  4 місяці тому

      The solution requires docker, and that's what was demonstrated in the video.

    • @InternetWarrior
      @InternetWarrior 4 місяці тому

      @@bonsaiilabs
      I have done it without any docker! There a Gpt4free library

  • @DotSlashA
    @DotSlashA 6 місяців тому +1

    I pretty much followed you but I get this error, any help?
    print(completion.choices[0].message.content)
    ~~~~~~~~~~~~~~~~~~^^^
    TypeError: 'NoneType' object is not subscriptable

    • @kirangkumar057
      @kirangkumar057 6 місяців тому +1

      got some bcz it fetched nothing. maybe its not working