mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
removing prints
This commit is contained in:
@@ -162,9 +162,6 @@ class Agent(BaseAgent):
|
|||||||
# Check if the environment variable is set
|
# Check if the environment variable is set
|
||||||
if "key_name" in env_var:
|
if "key_name" in env_var:
|
||||||
env_value = os.environ.get(env_var["key_name"])
|
env_value = os.environ.get(env_var["key_name"])
|
||||||
print(
|
|
||||||
f"Checking env var {env_var['key_name']}: {env_value}"
|
|
||||||
)
|
|
||||||
if env_value:
|
if env_value:
|
||||||
# Map key names containing "API_KEY" to "api_key"
|
# Map key names containing "API_KEY" to "api_key"
|
||||||
key_name = (
|
key_name = (
|
||||||
@@ -184,7 +181,6 @@ class Agent(BaseAgent):
|
|||||||
if "API_VERSION" in env_var["key_name"]
|
if "API_VERSION" in env_var["key_name"]
|
||||||
else key_name
|
else key_name
|
||||||
)
|
)
|
||||||
print(f"Mapped key name: {key_name}")
|
|
||||||
llm_params[key_name] = env_value
|
llm_params[key_name] = env_value
|
||||||
# Check for default values if the environment variable is not set
|
# Check for default values if the environment variable is not set
|
||||||
elif env_var.get("default", False):
|
elif env_var.get("default", False):
|
||||||
@@ -192,7 +188,6 @@ class Agent(BaseAgent):
|
|||||||
if key not in ["prompt", "key_name", "default"]:
|
if key not in ["prompt", "key_name", "default"]:
|
||||||
# Only add default if the key is already set in os.environ
|
# Only add default if the key is already set in os.environ
|
||||||
if key in os.environ:
|
if key in os.environ:
|
||||||
print(f"Using default value for {key}: {value}")
|
|
||||||
llm_params[key] = value
|
llm_params[key] = value
|
||||||
|
|
||||||
self.llm = LLM(**llm_params)
|
self.llm = LLM(**llm_params)
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ def run_crew() -> None:
|
|||||||
f"Please run `crewai update` to update your pyproject.toml to use uv.",
|
f"Please run `crewai update` to update your pyproject.toml to use uv.",
|
||||||
fg="red",
|
fg="red",
|
||||||
)
|
)
|
||||||
print()
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.run(command, capture_output=False, text=True, check=True)
|
subprocess.run(command, capture_output=False, text=True, check=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user