Skip to content

Commit

Permalink
Remove poetry check and import comment headers in crew_chat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 930f701 commit 1276683
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/crewai/cli/crew_chat.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1276683

Please sign in to comment.