Browse Source

Merge pull request #18438 from acwoo97/fix/load-defaults

fix: load default settings when sessionStorage is empty
Tim Baek 5 months ago
parent
commit
375d29bab4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib/components/chat/Chat.svelte

+ 2 - 0
src/lib/components/chat/Chat.svelte

@@ -192,6 +192,8 @@
 						codeInterpreterEnabled = input.codeInterpreterEnabled;
 					}
 				} catch (e) {}
+			} else {
+				await setDefaults();
 			}
 
 			const chatInput = document.getElementById('chat-input');