Skip to content

Commit 8d6de6a

Browse files
committed
bug
1 parent b5e18c5 commit 8d6de6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eval_protocol/cli_commands/upload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ def upload_command(args: argparse.Namespace) -> int:
628628

629629
# Load secrets from .env file
630630
secrets_from_file = _load_secrets_from_env_file(env_file_path)
631+
secrets_from_env_file = secrets_from_file.copy() # Track what came from .env file
631632

632633
# Also ensure FIREWORKS_API_KEY from environment is included
633634
fw_api_key_value = get_fireworks_api_key()
@@ -645,7 +646,7 @@ def upload_command(args: argparse.Namespace) -> int:
645646

646647
if fw_account_id and secrets_from_file:
647648
print(f"Found {len(secrets_from_file)} API keys to upload as Fireworks secrets...")
648-
if env_file or os.path.exists(env_file_path):
649+
if secrets_from_env_file and os.path.exists(env_file_path):
649650
print(f"Loading secrets from: {env_file_path}")
650651

651652
for secret_name, secret_value in secrets_from_file.items():

0 commit comments

Comments
 (0)