From 1276683c5511a42e594a9a4255d72eff7084887a Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 24 Jan 2025 21:37:49 +0000 Subject: [PATCH] Remove poetry check and import comment headers in crew_chat.py Co-Authored-By: brandon@crewai.com --- src/crewai/cli/crew_chat.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/crewai/cli/crew_chat.py b/src/crewai/cli/crew_chat.py index 35c549d86..f1695f0a4 100644 --- a/src/crewai/cli/crew_chat.py +++ b/src/crewai/cli/crew_chat.py @@ -1,16 +1,13 @@ -# Standard library import json import re import sys from pathlib import Path from typing import Any, Dict, List, Optional, Set, Tuple -# Third-party import click import tomli from packaging import version -# Local from crewai.cli.utils import read_toml from crewai.cli.version import get_crewai_version from crewai.crew import Crew @@ -34,13 +31,12 @@ def check_conversational_crews_version(crewai_version: str, pyproject_data: dict """ try: if version.parse(crewai_version) < version.parse(MIN_REQUIRED_VERSION): - if pyproject_data.get("tool", {}).get("poetry"): - click.secho( - "You are using an older version of crewAI that doesn't support conversational crews. " - "Run 'uv upgrade crewai' to get the latest version.", - fg="red" - ) - return False + click.secho( + "You are using an older version of crewAI that doesn't support conversational crews. " + "Run 'uv upgrade crewai' to get the latest version.", + fg="red" + ) + return False except version.InvalidVersion: click.secho("Invalid crewAI version format detected", fg="red") return False