I am trying to get the resume-optimization-crew to work. I followed all the instructions and am getting this error:
Traceback (most recent call last):
File “D:\ProgramData\Python\Python312\Lib\site-packages\crewai\agent.py”, line 150, in set_knowledge
self.knowledge = Knowledge(
^^^^^^^^^^
File “D:\ProgramData\Python\Python312\Lib\site-packages\crewai\knowledge\knowledge.py”, line 39, in init
self.storage = KnowledgeStorage(
^^^^^^^^^^^^^^^^^
File “D:\ProgramData\Python\Python312\Lib\site-packages\crewai\knowledge\storage\knowledge_storage.py”, line 56, in init
self._set_embedder_config(embedder)
File “D:\ProgramData\Python\Python312\Lib\site-packages\crewai\knowledge\storage\knowledge_storage.py”, line 202, in _set_embedder_config
else self._create_default_embedding_function()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:\ProgramData\Python\Python312\Lib\site-packages\crewai\knowledge\storage\knowledge_storage.py”, line 188, in _create_default_embedding_function
return OpenAIEmbeddingFunction(
^^^^^^^^^^^^^^^^^^^^^^^^
File “D:\ProgramData\Python\Python312\Lib\site-packages\chromadb\utils\embedding_functions\openai_embedding_function.py”, line 56, in init
raise ValueError(
ValueError: Please provide an OpenAI API key. You can get one at https://platform.openai.com/account/api-keys
I definitely have OPENAI_AP_KEY set in the .env file.
I’ve tried several things including recreating the .env file and I continue to get this.
I’ve worked with stock_analyst project before and did not have this problem. I am using the same API key which I know works.
python --version
Python 3.12.8