We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d6a66c commit b37a3a9Copy full SHA for b37a3a9
1 file changed
eval_protocol/cli_commands/upload.py
@@ -602,9 +602,9 @@ def upload_command(args: argparse.Namespace) -> int:
602
secrets_from_file = _load_secrets_from_env_file(env_file_path)
603
secrets_from_env_file = secrets_from_file.copy() # Track what came from .env file
604
605
- # Also ensure FIREWORKS_API_KEY from environment is included
+ # Also consider FIREWORKS_API_KEY from environment, but prefer .env value
606
fw_api_key_value = get_fireworks_api_key()
607
- if fw_api_key_value:
+ if fw_api_key_value and "FIREWORKS_API_KEY" not in secrets_from_file:
608
secrets_from_file["FIREWORKS_API_KEY"] = fw_api_key_value
609
610
if not fw_account_id and fw_api_key_value:
0 commit comments