You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: