streamlit openai tenacity