Issue encountered when trying to pass openai api key but the api could not retrive it #138
Closed
paddelcourt
started this conversation in
Q&A
Replies: 1 comment
-
Okay figured out the solve, needed to define openai key in .env before deploying. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On the .env file I passed
OPENAI_API_KEY=example_key
but I am getting this error:1 validation error for ChatOpenAI root Did not find openai_api_key, please add an environment variable OPENAI_API_KEY which contains it, or pass openai_api_key as a named parameter. (type=value_error)
Beta Was this translation helpful? Give feedback.
All reactions