-
Notifications
You must be signed in to change notification settings - Fork 87
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
error reading API key #3
Comments
Do you have your api keys in the environment variable? |
You can configure those as environment variables in script. import os
os.environ["OPENAI_API_KEY"] = "{your-key}" |
You have a paid OpenAI api, or have quota to use? Are you running the command "streamlit run web_explorer.py" from command terminal? I set my api keys in the secret.toml and it's working for me... |
thank you everyone, i got it working using environment variables, with a .env file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i tried running this streamlit app but I keep running into a validation error related to finding my openAI API key:
ValidationError: 1 validation error for OpenAIEmbeddings root Did not find openai_api_key, please add an environment variable
OPENAI_API_KEY
which contains it, or passopenai_api_key
as a named parameter. (type=value_error)i'm hoping this is just user error, and someone may be able to help me out? thank you
The text was updated successfully, but these errors were encountered: