When the OpenAI api key is not provided in st.secrets and instead needs to be provided by the user, the app errors out. There needs to be a check for OpenAI credentials and only after that check has succeeded, the vector store and model connections are established.
When the OpenAI api key is not provided in
st.secrets
and instead needs to be provided by the user, the app errors out. There needs to be a check for OpenAI credentials and only after that check has succeeded, the vector store and model connections are established.