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
Im running this on Windows 10
I added the API KEY in the .env file but i keep getting this error ValidationError: 1 validation error for OpenAIEmbeddings __root__ Did not find openai_api_key, please add an environment variable OPENAI_API_KEYwhich contains it, or passopenai_api_key as a named parameter. (type=value_error) Traceback: File "C:\Users\DELL\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "C:\Users\DELL\Desktop\Projects\langchain-ask-pdf-main\app.py", line 55, in <module> main() File "C:\Users\DELL\Desktop\Projects\langchain-ask-pdf-main\app.py", line 37, in main embeddings = OpenAIEmbeddings() ^^^^^^^^^^^^^^^^^^ File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
The text was updated successfully, but these errors were encountered:
Im running this on Windows 10
I added the API KEY in the .env file but i keep getting this error ValidationError: 1 validation error for OpenAIEmbeddings __root__ Did not find openai_api_key, please add an environment variable OPENAI_API_KEYwhich contains it, or passopenai_api_key as a named parameter. (type=value_error) Traceback: File "C:\Users\DELL\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "C:\Users\DELL\Desktop\Projects\langchain-ask-pdf-main\app.py", line 55, in <module> main() File "C:\Users\DELL\Desktop\Projects\langchain-ask-pdf-main\app.py", line 37, in main embeddings = OpenAIEmbeddings() ^^^^^^^^^^^^^^^^^^ File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
rename your .env.example to .env and place your open AI key in it.
Im running this on Windows 10
I added the API KEY in the .env file but i keep getting this error
ValidationError: 1 validation error for OpenAIEmbeddings __root__ Did not find openai_api_key, please add an environment variable
OPENAI_API_KEYwhich contains it, or pass
openai_api_keyas a named parameter. (type=value_error) Traceback: File "C:\Users\DELL\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "C:\Users\DELL\Desktop\Projects\langchain-ask-pdf-main\app.py", line 55, in <module> main() File "C:\Users\DELL\Desktop\Projects\langchain-ask-pdf-main\app.py", line 37, in main embeddings = OpenAIEmbeddings() ^^^^^^^^^^^^^^^^^^ File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
The text was updated successfully, but these errors were encountered: