From 671a8d0180a2a6490b52c972f715607fbfc9e7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 11 Mar 2024 22:19:47 -0300 Subject: [PATCH] preparring new version that autoloads env --- pyproject.toml | 3 ++- src/crewai/project/crew_base.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 66727ea57..6336baee6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "crewai" -version = "0.22.2" +version = "0.22.3" description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks." authors = ["Joao Moura "] readme = "README.md" @@ -26,6 +26,7 @@ instructor = "^0.5.2" regex = "^2023.12.25" crewai-tools = { version = "^0.0.15", optional = true } click = "^8.1.7" +python-dotenv = "1.0.0" [tool.poetry.extras] tools = ["crewai-tools"] diff --git a/src/crewai/project/crew_base.py b/src/crewai/project/crew_base.py index 3c0bac4b4..a38dbe1a0 100644 --- a/src/crewai/project/crew_base.py +++ b/src/crewai/project/crew_base.py @@ -3,6 +3,9 @@ import os from pathlib import Path import yaml +from dotenv import load_dotenv + +load_dotenv() def CrewBase(cls):