OpenAI version 1.55.2 contains a bug resolved in OpenAI version 1.55.3.
In the Streamlit case, edit the version in requirements.