shreyashankar / gpt3-sandbox

The goal of this project is to enable users to create cool web demos using the newly released OpenAI GPT-3 API with just a few lines of Python.
MIT License
2.9k stars 882 forks source link

openai.error.RateLimitError not handled #109

Open hendryman opened 2 years ago

hendryman commented 2 years ago

I run a fine-tuned model that sometimes takes a while to load. The UI does not reflect that, it just stays "silent".

output in terminal is: [2022-06-05 11:48:07,665] ERROR in app: Exception on /translate [POST] (...) openai.error.RateLimitError: That model is still being loaded. Please try again shortly.

Can the UI be modified to deliver that message to the user?