This is an OpenAI-imposed limit on requests coming from one server. Bubble apps are hosted on one (or a few) servers. That means that if lots of apps make API calls, OpenAI thinks they’re all coming from the same place, and imposes a limit. Bubble cannot do anything about this limit. It is OpenAI’s responsibility.
You have three options:
- Make the call from the client side. This will expose the API key, so only use it if your users provide their own key.
- Make the call from a server side action. Server side actions are Lambda functions so the request wouldn’t come from the main Bubble server. This was confirmed as a good option @nick.carroll on Slack. Keep in mind, if you don’t code, making a SSA would be a little confusing.
- Use the solution I provided, by simply changing the API call URL and adding a header that contains the OpenAI endpoint’s URL you were previously using, with no further action required. Bubble.io Rate limited by OpenAI DALLe - #23 by georgecollier