@@ -155,7 +155,7 @@ def apply_profile(interpreter, profile, profile_path):
155
155
"We have updated our profile file format. Would you like to migrate your profile file to the new format? No data will be lost."
156
156
)
157
157
print ("" )
158
- message = input ("(y/n): " )
158
+ message = input ("(y/n) " )
159
159
print ("" )
160
160
if message .lower () == "y" :
161
161
migrate_user_app_directory ()
@@ -164,7 +164,9 @@ def apply_profile(interpreter, profile, profile_path):
164
164
if profile_path .endswith ("default.yaml" ):
165
165
with open (profile_path , "r" ) as file :
166
166
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
+ )
168
170
169
171
try :
170
172
if profile ["llm" ]["model" ] == "gpt-4" :
@@ -175,7 +177,7 @@ def apply_profile(interpreter, profile, profile_path):
175
177
profile ["llm" ]["model" ] = "gpt-4-turbo"
176
178
except :
177
179
raise
178
- pass # fine
180
+ pass # fine
179
181
180
182
with open (profile_path , "w" ) as file :
181
183
file .write (text )
@@ -567,7 +569,7 @@ def apply_profile_to_object(obj, profile):
567
569
568
570
def open_storage_dir (directory ):
569
571
dir = os .path .join (oi_dir , directory )
570
-
572
+
571
573
print (f"Opening { directory } directory ({ dir } )..." )
572
574
573
575
if platform .system () == "Windows" :
@@ -581,6 +583,7 @@ def open_storage_dir(directory):
581
583
subprocess .call (["open" , dir ])
582
584
return
583
585
586
+
584
587
def reset_profile (specific_default_profile = None ):
585
588
if (
586
589
specific_default_profile
@@ -629,9 +632,7 @@ def reset_profile(specific_default_profile=None):
629
632
with open (target_file , "r" ) as file :
630
633
current_profile = file .read ()
631
634
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) " )
635
636
if user_input .lower () == "y" :
636
637
send2trash .send2trash (
637
638
target_file
0 commit comments