@@ -519,35 +519,35 @@ def upload_command(args: argparse.Namespace) -> int:
519519 description = getattr (args , "description" , None )
520520 force = bool (getattr (args , "force" , False ))
521521
522- # Ensure FIREWORKS_API_KEY is available to the remote by storing it as a Fireworks secret
523- try :
524- fw_account_id = get_fireworks_account_id ()
525- fw_api_key_value = get_fireworks_api_key ()
526- if not fw_account_id and fw_api_key_value :
527- # Attempt to verify and resolve account id from server headers
528- resolved = verify_api_key_and_get_account_id (api_key = fw_api_key_value , api_base = get_fireworks_api_base ())
529- if resolved :
530- fw_account_id = resolved
531- # Propagate to environment so downstream calls use it if needed
532- os .environ ["FIREWORKS_ACCOUNT_ID" ] = fw_account_id
533- print (f"Resolved FIREWORKS_ACCOUNT_ID via API verification: { fw_account_id } " )
534- if fw_account_id and fw_api_key_value :
535- print ("Ensuring FIREWORKS_API_KEY is registered as a secret on Fireworks for rollout..." )
536- if create_or_update_fireworks_secret (
537- account_id = fw_account_id ,
538- key_name = "FIREWORKS_API_KEY" ,
539- secret_value = fw_api_key_value ,
540- ):
541- print ("✓ FIREWORKS_API_KEY secret created/updated on Fireworks." )
542- else :
543- print ("Warning: Failed to create/update FIREWORKS_API_KEY secret on Fireworks." )
544- else :
545- if not fw_account_id :
546- print ("Warning: FIREWORKS_ACCOUNT_ID not found; cannot register FIREWORKS_API_KEY secret." )
547- if not fw_api_key_value :
548- print ("Warning: FIREWORKS_API_KEY not found locally; cannot register secret." )
549- except Exception as e :
550- print (f"Warning: Skipped Fireworks secret registration due to error: { e } " )
522+ # # Ensure FIREWORKS_API_KEY is available to the remote by storing it as a Fireworks secret
523+ # try:
524+ # fw_account_id = get_fireworks_account_id()
525+ # fw_api_key_value = get_fireworks_api_key()
526+ # if not fw_account_id and fw_api_key_value:
527+ # # Attempt to verify and resolve account id from server headers
528+ # resolved = verify_api_key_and_get_account_id(api_key=fw_api_key_value, api_base=get_fireworks_api_base())
529+ # if resolved:
530+ # fw_account_id = resolved
531+ # # Propagate to environment so downstream calls use it if needed
532+ # os.environ["FIREWORKS_ACCOUNT_ID"] = fw_account_id
533+ # print(f"Resolved FIREWORKS_ACCOUNT_ID via API verification: {fw_account_id}")
534+ # if fw_account_id and fw_api_key_value:
535+ # print("Ensuring FIREWORKS_API_KEY is registered as a secret on Fireworks for rollout...")
536+ # if create_or_update_fireworks_secret(
537+ # account_id=fw_account_id,
538+ # key_name="FIREWORKS_API_KEY",
539+ # secret_value=fw_api_key_value,
540+ # ):
541+ # print("✓ FIREWORKS_API_KEY secret created/updated on Fireworks.")
542+ # else:
543+ # print("Warning: Failed to create/update FIREWORKS_API_KEY secret on Fireworks.")
544+ # else:
545+ # if not fw_account_id:
546+ # print("Warning: FIREWORKS_ACCOUNT_ID not found; cannot register FIREWORKS_API_KEY secret.")
547+ # if not fw_api_key_value:
548+ # print("Warning: FIREWORKS_API_KEY not found locally; cannot register secret.")
549+ # except Exception as e:
550+ # print(f"Warning: Skipped Fireworks secret registration due to error: {e}")
551551
552552 exit_code = 0
553553 for i , (qualname , source_file_path ) in enumerate (selected_specs ):
0 commit comments