Skip to content

Conversation

@nickknyc
Copy link

@nickknyc nickknyc commented Dec 7, 2023

Per #51 I have removed the use of st.secrets and thus the need for using a secrets.toml file.

Why
The secrets.toml is problematic when deploying to hosting other that streamlit/snowflake. In my case deploying to Azure Application Services resulted in an exposed secrets.toml. This resulted in OpenAI automagically deleting the exposed key. Which in turn made my rags deployment fail at runtime.

What
This PR has removed all of the uses of st.secrets and the secrets.toml file and instead sets up use of good old os.getenv()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant