Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing Dependence on secrets.toml for environment variables #54

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

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.

None yet

1 participant