Please help me to resolve the problems described below:
It looks like I miss something in setup of the notebook “L2: Create Agents to Research and Write an Article” for running it at local computer.
It starts from:
You can download the requirements.txt for this course from the workspace of this lab. File --> Open...
Where may I find requirements.txt?
from utils import get_openai_api_key
I obtained the following error: ImportError: cannot import name ‘get_openai_api_key’ from ‘utils’ ([C:\Users\USER\AppData\Roaming\Python\Python311\site-packages\utils_init_.py]
openai_api_key = get_openai_api_key()
NameError: name ‘get_openai_api_key’ is not defined
Where may I find correct utils?
If I use my existing open api key instead:
openai_api_key = os.getenv(“OPENAI_API_KEY”)
It works but this variable is never passed to any place afterwards.
Afterwards I obtained an error at:
result = crew.kickoff(inputs={“topic”: “Artificial Intelligence”})
Error code: 429 - {‘error’: {‘message’: 'You exceeded your current quota, please check your plan and billing details.
My plan is active and I worked with it previously. Looks like I cannot connect LLM inside agents with my key.
Glad everything worked! You can download the files from your workspace. You can access your workspace by clicking File on the top left (or Menu if your Jupyter notebook window is small) in the Jupyter notebook and then click Open...
I received this message for the first task. Why is that?
oykus@Oykus-Air ~ /usr/local/bin/python3 Untitled-2
/Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/oykus/Untitled-2': [Errno 2] No such file or directory
oykus@Oykus-Air ~ /usr/local/bin/python3 Untitled-2
/Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python: can’t open file ‘/Users/oykus/Untitled-2’: [Errno 2] No such file or directory
oykus@Oykus-Air ~ /usr/local/bin/python3 "/Users/oykus/Downloads/# Warning control.py"
Traceback (most recent call last):
File "/Users/oykus/Downloads/# Warning control.py", line 4, in <module>
from crewai import Agent, Task, Crew
ModuleNotFoundError: No module named 'crewai'
oykus@Oykus-Air ~