MultiAgent LLM with crewAI

I am trying to run the lab on Colab Pro. I have installed the folowing
!pip install crewai==0.28.8 crewai_tools==0.1.6 langchain_community==0.0.29 and
from crewai import Agent, Task, Crew
but when i try to import the next code snippet
"import os
from utils import get_openai_api_key

openai_api_key = get_openai_api_key()
os.environ[“OPENAI_MODEL_NAME”] = ‘gpt-3.5-turbo’

It gives me an error
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 0>()
1 import os
----> 2 from utils import get_openai_api_key
3
4 openai_api_key = get_openai_api_key()
5 os.environ[“OPENAI_MODEL_NAME”] = ‘gpt-3.5-turbo’

ModuleNotFoundError: No module named ‘utils’

I already do have an openai_api_key installed in my colab environment.
What could be the issue?
Thanks
Hans

Your snippet code is right!

Assuming for instance you are refering to the L2_research_write_article notebook - where you for instance can find your snippet code - it seems that you have not uploaded the utils.py file . This file can be found in the Deeplearning_crewai juptyper. Follow instructions to get this file.

Step1: Go in the file and then open

Step2 As you can see you will get an overview of files that are needed to run both into the Deeplearning platform and locally . There you can see utils.py file!

Step3 Click to download the utils.py into your computer

step4 Put the downloaded file in the same directory where you have your .env file and your notebook. Run your snippet code and the problem should be solved.

Hoping this can help you!