@@ -155,7 +155,7 @@ def apply_profile(interpreter, profile, profile_path):
155155 "We have updated our profile file format. Would you like to migrate your profile file to the new format? No data will be lost."
156156 )
157157 print ("" )
158- message = input ("(y/n): " )
158+ message = input ("(y/n) " )
159159 print ("" )
160160 if message .lower () == "y" :
161161 migrate_user_app_directory ()
@@ -164,7 +164,9 @@ def apply_profile(interpreter, profile, profile_path):
164164 if profile_path .endswith ("default.yaml" ):
165165 with open (profile_path , "r" ) as file :
166166 text = file .read ()
167- text = text .replace ("version: " + str (profile ["version" ]), f"version: { OI_VERSION } " )
167+ text = text .replace (
168+ "version: " + str (profile ["version" ]), f"version: { OI_VERSION } "
169+ )
168170
169171 try :
170172 if profile ["llm" ]["model" ] == "gpt-4" :
@@ -175,7 +177,7 @@ def apply_profile(interpreter, profile, profile_path):
175177 profile ["llm" ]["model" ] = "gpt-4-turbo"
176178 except :
177179 raise
178- pass # fine
180+ pass # fine
179181
180182 with open (profile_path , "w" ) as file :
181183 file .write (text )
@@ -567,7 +569,7 @@ def apply_profile_to_object(obj, profile):
567569
568570def open_storage_dir (directory ):
569571 dir = os .path .join (oi_dir , directory )
570-
572+
571573 print (f"Opening { directory } directory ({ dir } )..." )
572574
573575 if platform .system () == "Windows" :
@@ -581,6 +583,7 @@ def open_storage_dir(directory):
581583 subprocess .call (["open" , dir ])
582584 return
583585
586+
584587def reset_profile (specific_default_profile = None ):
585588 if (
586589 specific_default_profile
@@ -629,9 +632,7 @@ def reset_profile(specific_default_profile=None):
629632 with open (target_file , "r" ) as file :
630633 current_profile = file .read ()
631634 if current_profile not in historical_profiles :
632- user_input = input (
633- f"Would you like to reset/update { filename } ? (y/n): "
634- )
635+ user_input = input (f"Would you like to reset/update { filename } ? (y/n) " )
635636 if user_input .lower () == "y" :
636637 send2trash .send2trash (
637638 target_file
0 commit comments