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

Log Error when Running Site #102

Open
agrim3 opened this issue Jul 23, 2023 · 1 comment
Open

Log Error when Running Site #102

agrim3 opened this issue Jul 23, 2023 · 1 comment

Comments

@agrim3
Copy link

agrim3 commented Jul 23, 2023

Hi Fabrizio. I saw a post was done on the same error, but no solution was provided.
I launched my web-app, but upon loading in ran into an error (pasted below)

Traceback (most recent call last): File "/usr/local/src/myscripts/OpenAI_Queries.py", line 147, in llm_helper = LLMHelper(custom_prompt=st.session_state.custom_prompt, temperature=st.session_state.custom_temperature) File "/usr/local/src/myscripts/utilities/helper.py", line 92, in init self.embeddings: OpenAIEmbeddings = OpenAIEmbeddings(model=self.model, chunk_size=1) if embeddings is None else embeddings File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.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 pass openai_api_key as a named parameter. (type=value_error)

Can you be so kind ot help me out ?
Grazie,
Alberto

@ruoccofabrizio
Copy link
Owner

Check your environment for the OPENAI_API_KEY variable

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

No branches or pull requests

2 participants