so in the anaconda prompt
got this error
KEY ERROR:: 'openai_key'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\chait\miniconda3\envs\rags\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run
script exec(code, module.dict) File "C:\Users\chait\Downloads\rags-main\rags-main\1π _Home.py", line 4, in <module>
from st_utils import (
File "C:\Users\chait\Downloads\rags-main\rags-main\st_utils.py", line 2, in <module>
from core.agent_builder.loader import (
File "C:\Users\chait\Downloads\rags-main\rags-main\core\agent_builder\loader.py", line 6, in <module>
from core.builder_config import BUILDER_LLM
File "C:\Users\chait\Downloads\rags-main\rags-main\core\builder_config.py", line 12, in <module>
os.environ["OPENAI_API_KEY"] = st.secrets.openai_key
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chait\miniconda3\envs\rags\Lib\site-packages\streamlit\runtime\secrets.py", line 296, in
getattr raise AttributeError(_missing_attr_error_message(key))
AttributeError: st.secrets has no attribute "openai_key". Did you forget to add it to secrets.toml or the app settings on Streamlit Cloud? More info:
https://docs.streamlit.io/streamlit-cloud/get-started/deploy-an-app/connect-to-data-sources/secrets-management