python-whatsapp-bot icon indicating copy to clipboard operation
python-whatsapp-bot copied to clipboard

Limit access?

Open stevenbaert opened this issue 1 year ago • 2 comments

Love this project! Though, before I dive in: any way to limit access to the bot? I'd like to set it up for personal use/testing and obviously don't want to bear the costs of the whole world chatting with it 😁 Also would be nice to set a threshold on costs, let's say if above 100 Dollar/month warn and above 150 disable access.

stevenbaert avatar Dec 10 '23 17:12 stevenbaert

You can do this directly on the OpenAI Dashboard

kaiofreitas avatar Feb 02 '24 19:02 kaiofreitas

How's that? OpenAI dashboard might limit openai access but not the access to the bot. So then you could limit the bit not to work for certain ips? Then still you don't limit WhatsApp users. Don't see how you would or even could limit WhatsApp phone numbers in OpenAI.

stevenbaert avatar Feb 02 '24 20:02 stevenbaert