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
I keep getting this error regardless of the API i use. Groq or OpenAI gives the same respective error.
(venv) PS C:\qagent> python quickagent.py
Python-dotenv could not parse statement starting at line 1
Traceback (most recent call last):
File "C:\qagent\quickagent.py", line 218, in
manager = ConversationManager()
^^^^^^^^^^^^^^^^^^^^^
File "C:\qagent\quickagent.py", line 195, in init
self.llm = LanguageModelProcessor()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\qagent\quickagent.py", line 34, in init
self.llm = ChatOpenAI(temperature=0, model_name="gpt-4-0125-preview", openai_api_key=os.getenv("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"))
File "C:\qagent\venv\Lib\site-packages\langchain_core\load\serializable.py", line 120, in init
super().init(**kwargs)
File "C:\qagent\venv\Lib\site-packages\pydantic\v1\main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 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)
The text was updated successfully, but these errors were encountered:
I keep getting this error regardless of the API i use. Groq or OpenAI gives the same respective error.
(venv) PS C:\qagent> python quickagent.py
Python-dotenv could not parse statement starting at line 1
Traceback (most recent call last):
File "C:\qagent\quickagent.py", line 218, in
manager = ConversationManager()
^^^^^^^^^^^^^^^^^^^^^
File "C:\qagent\quickagent.py", line 195, in init
self.llm = LanguageModelProcessor()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\qagent\quickagent.py", line 34, in init
self.llm = ChatOpenAI(temperature=0, model_name="gpt-4-0125-preview", openai_api_key=os.getenv("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"))
File "C:\qagent\venv\Lib\site-packages\langchain_core\load\serializable.py", line 120, in init
super().init(**kwargs)
File "C:\qagent\venv\Lib\site-packages\pydantic\v1\main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for ChatOpenAI
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)The text was updated successfully, but these errors were encountered: