Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is groq api key stored ? is it in secrets.toml ? #9

Open
scenaristeur opened this issue Apr 7, 2024 · 1 comment
Open

where is groq api key stored ? is it in secrets.toml ? #9

scenaristeur opened this issue Apr 7, 2024 · 1 comment

Comments

@scenaristeur
Copy link

No secrets files found. Valid paths for a secrets.toml file are: /home/user/.streamlit/secrets.toml, /home/user/dev/crewai-groq/.streamlit/secrets.toml

@samagra44
Copy link

There is also another way: you can store the API key in a .env file and replace the following code:

import os
llm = ChatGroq(
temperature=0,
groq_api_key=os.getenv("GROQ_API_KEY"),
model_name=model
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants