Skip to content

Removing Dependence on secrets.toml for environment variables#54

Open
nickknyc wants to merge 10 commits into
run-llama:mainfrom
Studio13-NYC:nick-pr-envar
Open

Removing Dependence on secrets.toml for environment variables#54
nickknyc wants to merge 10 commits into
run-llama:mainfrom
Studio13-NYC:nick-pr-envar

Conversation

@nickknyc

@nickknyc nickknyc commented Dec 7, 2023

Copy link
Copy Markdown

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