show version number

This commit is contained in:
Brandon Hancock
2025-01-25 16:12:02 -05:00
parent 1276683c55
commit 4a4f4314d7

View File

@@ -18,7 +18,9 @@ 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.
@@ -32,9 +34,9 @@ def check_conversational_crews_version(crewai_version: str, pyproject_data: dict
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: