From 4a4f4314d731fe3409404965705f123d7c8d4971 Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Sat, 25 Jan 2025 16:12:02 -0500 Subject: [PATCH] show version number --- src/crewai/cli/crew_chat.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/crewai/cli/crew_chat.py b/src/crewai/cli/crew_chat.py index f1695f0a4..e9e787498 100644 --- a/src/crewai/cli/crew_chat.py +++ b/src/crewai/cli/crew_chat.py @@ -18,23 +18,25 @@ from crewai.utilities.llm_utils import create_llm MIN_REQUIRED_VERSION = "0.98.0" -def check_conversational_crews_version(crewai_version: str, pyproject_data: dict) -> bool: +def check_conversational_crews_version( + crewai_version: str, pyproject_data: dict +) -> bool: """ Check if the installed crewAI version supports conversational crews. - + Args: crewai_version: The current version of crewAI pyproject_data: Dictionary containing pyproject.toml data - + Returns: bool: True if version check passes, False otherwise """ try: if version.parse(crewai_version) < version.parse(MIN_REQUIRED_VERSION): click.secho( - "You are using an older version of crewAI that doesn't support conversational crews. " + f"You are using an older version {crewai_version} of crewAI that doesn't support conversational crews. " "Run 'uv upgrade crewai' to get the latest version.", - fg="red" + fg="red", ) return False except version.InvalidVersion: