@@ -282,9 +282,37 @@ def reset_application(self):
282
282
}
283
283
}
284
284
285
+ app_settings = {
286
+ "display.bubble_avatar_position" : "Top" ,
287
+ "display.bubble_spacing" : 7 ,
288
+ "display.primary_color" : "#ff11121b" ,
289
+ "display.secondary_color" : "#ff222332" ,
290
+ "display.show_bubble_avatar" : "In Group" ,
291
+ "display.show_bubble_name" : "In Group" ,
292
+ "display.show_waiting_bar" : "In Group" ,
293
+ "display.text_color" : "#ffb0bbd5" ,
294
+ "display.text_font" : "" ,
295
+ "display.text_size" : 15 ,
296
+ "display.window_margin" : 6 ,
297
+ "system.always_on_top" : True ,
298
+ "system.auto_completion" : False ,
299
+ "system.auto_title" : True ,
300
+ "system.auto_title_model" : "gpt-3.5-turbo" ,
301
+ "system.auto_title_prompt" : "Write only a brief and concise title for a chat that begins with the following message:\n \n ```{user_msg}```" ,
302
+ "system.dev_mode" : False ,
303
+ "system.language" : "English" ,
304
+ "system.telemetry" : True ,
305
+ "system.voice_input_method" : "None"
306
+ }
307
+
285
308
sql .execute ('DELETE FROM contexts_messages' )
286
309
sql .execute ('DELETE FROM contexts' )
287
310
sql .execute ('DELETE FROM logs' )
311
+
312
+ sql .execute ("UPDATE settings SET value = '' WHERE field = 'my_uuid'" )
313
+ sql .execute ("UPDATE settings SET value = '0' WHERE field = 'accepted_tos'" )
314
+ sql .execute ("UPDATE settings SET value = ? WHERE field = 'app_config'" , (json .dumps (app_settings ),))
315
+
288
316
sql .execute ('VACUUM' )
289
317
# # self.parent.update_config('system.dev_mode', False)
290
318
# # self.toggle_dev_mode(False)
0 commit comments