mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
Remove poetry check and import comment headers in crew_chat.py
Co-Authored-By: brandon@crewai.com <brandon@crewai.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user