Skip to content

Commit

Permalink
removing prints
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Nov 12, 2024
1 parent fd0de3a commit bcfcf88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/crewai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ def post_init_setup(self):
# Check if the environment variable is set
if "key_name" in env_var:
env_value = os.environ.get(env_var["key_name"])
print(
f"Checking env var {env_var['key_name']}: {env_value}"
)
if env_value:
# Map key names containing "API_KEY" to "api_key"
key_name = (
Expand All @@ -184,15 +181,13 @@ def post_init_setup(self):
if "API_VERSION" in env_var["key_name"]
else key_name
)
print(f"Mapped key name: {key_name}")
llm_params[key_name] = env_value
# Check for default values if the environment variable is not set
elif env_var.get("default", False):
for key, value in env_var.items():
if key not in ["prompt", "key_name", "default"]:
# Only add default if the key is already set in os.environ
if key in os.environ:
print(f"Using default value for {key}: {value}")
llm_params[key] = value

self.llm = LLM(**llm_params)
Expand Down
1 change: 0 additions & 1 deletion src/crewai/cli/run_crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def run_crew() -> None:
f"Please run `crewai update` to update your pyproject.toml to use uv.",
fg="red",
)
print()

try:
subprocess.run(command, capture_output=False, text=True, check=True)
Expand Down

0 comments on commit bcfcf88

Please sign in to comment.