File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
eval_protocol/cli_commands Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 ():
You can’t perform that action at this time.
0 commit comments