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.
https://autogroq.streamlit.app/
1.21k stars 422 forks source link

How do i set up the api key? #17

Closed scaruslooner closed 2 months ago

scaruslooner commented 2 months ago

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)

steven-yan commented 2 months ago

same issue, how to solve please

jgravelle commented 2 months ago

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