irisrumtub / GPT-Twitch-Chatbot

Chat bot for Twitch that uses OpenAI's completions to respond with.
23 stars 12 forks source link

AxiosError: Request failed with status code 429 #2

Closed Gimlao closed 1 year ago

Gimlao commented 1 year ago

I'm getting this error while trying "!ai" in the chat.

irisrumtub commented 1 year ago

Hi @Gimlao ! Thanks for opening the issue. Could you please tell me if you are building your chatbot with npm or did you download a folder with executable and run it? Also are you using vpn?

That error basically means that your IP is sending too many requests to openai. It could be sue to various reasons. It could be because of a bug in code or somewhere else, so I will need more detail to see where the error comes from.

Gimlao commented 1 year ago

Using the exe available here : https://drive.google.com/file/d/1hm3G1vBL0gW08mF7mzpL0_LKC7aI2A6d/view?usp=sharing

irisrumtub commented 1 year ago

Thanks for the follow-up @Gimlao ! I believe I have found out the root of the issue. Can you confirm that you have funds on your openai account? Also there are some rate-limits which are imposed on basic openai accounts, you fan find them here: Usually when you register on openai you get $18. These $18 are given to you for 4 months, and since then you will have to have funds on your account for openai to work. For me it is usually up to 2-5 USD per month with very frequent streaming (all weekdays for 4 hours). But the cost may vary if you have a lot of chattera and viewers. So let's see if the issue root is within your account. On a side-note, I am currently uploading this bot to the server and I'm going to use it to test bot and eventually make it commercial. If you are interested in the partnership with me you can contact me directly, I will be eager to help you out. You will not need to run the bot itself on your machine and I will run it on server instead. If this sounds interesting to you you can contact me via: Discord irisrumtub#7359 Telegram @irisrumtub Email tvburis@gmail.com

Gimlao commented 1 year ago

I created this OpenAI account yesterday before trying your app, so I never used it. 😅

irisrumtub commented 1 year ago

@Gimlao you can check everything openai-related on https://beta.openai.com/account/usage

Gimlao commented 1 year ago

Indeed, this new account is showing $0.00 / $0.00, I don't know why, very odd.

So now I tried using my personal account, which is showing $0.00 / $18.00, and now it works.

irisrumtub commented 1 year ago

Thank you for a follow-up @Gimlao! Closing the issue as resolved