@@ -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 )
@@ -566,7 +568,7 @@ def apply_profile_to_object(obj, profile):
566568
567569def open_storage_dir (directory ):
568570 dir = os .path .join (oi_dir , directory )
569-
571+
570572 print (f"Opening { directory } directory ({ dir } )..." )
571573
572574 if platform .system () == "Windows" :
@@ -580,6 +582,7 @@ def open_storage_dir(directory):
580582 subprocess .call (["open" , dir ])
581583 return
582584
585+
583586def reset_profile (specific_default_profile = None ):
584587 if (
585588 specific_default_profile
@@ -628,9 +631,7 @@ def reset_profile(specific_default_profile=None):
628631 with open (target_file , "r" ) as file :
629632 current_profile = file .read ()
630633 if current_profile not in historical_profiles :
631- user_input = input (
632- f"Would you like to reset/update { filename } ? (y/n): "
633- )
634+ user_input = input (f"Would you like to reset/update { filename } ? (y/n) " )
634635 if user_input .lower () == "y" :
635636 send2trash .send2trash (
636637 target_file
0 commit comments