mirror of
https://github.com/run-llama/rags.git
synced 2026-06-30 20:57:57 -04:00
[PR #54] Removing Dependence on secrets.toml for environment variables #67
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/rags/pull/54
Author: @nickknyc
Created: 12/7/2023
Status: 🔄 Open
Base:
main← Head:nick-pr-envar📝 Commits (10+)
5e422cbstart againe7a400crestarte1f1061try again - simple9b8633etry getenv0613543forgot getenv in the req.txt564c75dgetenv typo fixb1eb5e9remove st.secrets and commit cache (good idea?)80994dametaphor_python to requirements6569597clearing chache1d7177fdelte _trouble📊 Changes
8 files changed (+504 additions, -13 deletions)
View changed files
📝
.gitignore(+2 -0)📝
1_🏠_Home.py(+5 -1)➕
cache/agents/agent_ids.json(+1 -0)➕
content/DesignStudent.md(+470 -0)📝
core/agent_builder/loader.py(+6 -3)📝
core/builder_config.py(+9 -3)📝
core/utils.py(+9 -6)📝
requirements.txt(+2 -0)📄 Description
Per https://github.com/run-llama/rags/issues/51 I have removed the use of
st.secretsand thus the need for using asecrets.tomlfile.Why
The
secrets.tomlis problematic when deploying to hosting other that streamlit/snowflake. In my case deploying to Azure Application Services resulted in an exposedsecrets.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()🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.