Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Oct 23, 2024
1 parent 74c1703 commit 6baaad0
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "crewai"
version = "0.76.0"
version = "0.76.1"
description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks."
readme = "README.md"
requires-python = ">=3.10,<=3.13"
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
category=UserWarning,
module="pydantic.main",
)
__version__ = "0.76.0"
__version__ = "0.76.1"
__all__ = ["Agent", "Crew", "Process", "Task", "Pipeline", "Router", "LLM", "Flow"]
6 changes: 3 additions & 3 deletions src/crewai/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ def crewai():
@crewai.command()
@click.argument("type", type=click.Choice(["crew", "pipeline", "flow"]))
@click.argument("name")
@click.option("--skip-provider", is_flag=True, help="Skip provider validation")
@click.option("--provider", type=str, help="The provider to use for the crew")
def create(type, name, provider, skip_provider_validation=False):
@click.option("--skip_provider", is_flag=True, help="Skip provider validation")
def create(type, name, provider, skip_provider=False):
"""Create a new crew, pipeline, or flow."""
if type == "crew":
create_crew(name, provider, skip_provider_validation)
create_crew(name, provider, skip_provider)
elif type == "pipeline":
create_pipeline(name)
elif type == "flow":
Expand Down
10 changes: 5 additions & 5 deletions src/crewai/cli/create_crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,10 @@ def copy_template_files(folder_path, name, class_name, parent_folder):
copy_template(src_file, dst_file, name, class_name, folder_path.name)


def create_crew(
name, provider=None, skip_provider_validation=False, parent_folder=None
):
def create_crew(name, provider=None, skip_provider=False, parent_folder=None):
folder_path, folder_name, class_name = create_folder_structure(name, parent_folder)
env_vars = load_env_vars(folder_path)
if not skip_provider_validation:
if not skip_provider:
if not provider:
provider_models = get_provider_data()
if not provider_models:
Expand Down Expand Up @@ -155,7 +153,9 @@ def create_crew(
write_env_file(folder_path, env_vars)
click.secho("API key saved to .env file", fg="green")
else:
click.secho("No API key provided. Skipping .env file creation.", fg="yellow")
click.secho(
"No API key provided. Skipping .env file creation.", fg="yellow"
)

env_vars["MODEL"] = selected_model
click.secho(f"Selected model: {selected_model}", fg="green")
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/crew/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
authors = [{ name = "Your Name", email = "you@example.com" }]
requires-python = ">=3.10,<=3.13"
dependencies = [
"crewai[tools]>=0.76.0,<1.0.0"
"crewai[tools]>=0.76.1,<1.0.0"
]

[project.scripts]
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/flow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
authors = [{ name = "Your Name", email = "you@example.com" }]
requires-python = ">=3.10,<=3.13"
dependencies = [
"crewai[tools]>=0.76.0,<1.0.0",
"crewai[tools]>=0.76.1,<1.0.0",
]

[project.scripts]
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/pipeline/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]

[tool.poetry.dependencies]
python = ">=3.10,<=3.13"
crewai = { extras = ["tools"], version = ">=0.76.0,<1.0.0" }
crewai = { extras = ["tools"], version = ">=0.76.1,<1.0.0" }
asyncio = "*"

[tool.poetry.scripts]
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/pipeline_router/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
authors = ["Your Name <you@example.com>"]
requires-python = ">=3.10,<=3.13"
dependencies = [
"crewai[tools]>=0.76.0,<1.0.0"
"crewai[tools]>=0.76.1,<1.0.0"
]

[project.scripts]
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/tool/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ description = "Power up your crews with {{folder_name}}"
readme = "README.md"
requires-python = ">=3.10,<=3.13"
dependencies = [
"crewai[tools]>=0.76.0"
"crewai[tools]>=0.76.1"
]

2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6baaad0

Please sign in to comment.