jgravelle / AutoGroq

AutoGroq is a groundbreaking tool that revolutionizes the way users interact with Autogen™ and other AI assistants. By dynamically generating tailored teams of AI agents based on your project requirements, AutoGroq eliminates the need for manual configuration and allows you to tackle any question, problem, or project with ease and efficiency.

Home Page:https://autogroq.streamlit.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do i set up the api key?

scaruslooner opened this issue · comments

I got this error message while trying to run this command "streamlit run AutoGroq/main.py". How do I set up the api key?

No secrets files found. Valid paths for a secrets.toml file are: C:\Users\camer.streamlit\secrets.toml, C:\Users\camer\Documents\AutoGroq.streamlit\secrets.toml

FileNotFoundError: No secrets files found. Valid paths for a secrets.toml file are: C:\Users\camer.streamlit\secrets.toml, C:\Users\camer\Documents\AutoGroq.streamlit\secrets.toml
Traceback:
File "C:\Users\camer\Documents\AutoGroq\autogroq_venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "C:\Users\camer\Documents\AutoGroq\AutoGroq\main.py", line 82, in
main()
File "C:\Users\camer\Documents\AutoGroq\AutoGroq\main.py", line 23, in main
api_key = get_api_key()
^^^^^^^^^^^^^
File "C:\Users\camer\Documents\AutoGroq\AutoGroq\auth_utils.py", line 24, in get_api_key
api_key = st.secrets.get(api_key_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 774, in get
File "C:\Users\camer\Documents\AutoGroq\autogroq_venv\Lib\site-packages\streamlit\runtime\secrets.py", line 305, in getitem
value = self._parse(True)[key]
^^^^^^^^^^^^^^^^^
File "C:\Users\camer\Documents\AutoGroq\autogroq_venv\Lib\site-packages\streamlit\runtime\secrets.py", line 214, in _parse
raise FileNotFoundError(err_msg)

commented

same issue, how to solve please

Locally, make environment variables... https://www.youtube.com/watch?v=VKvoNLsSKj0&t=410s