Browse Source

fix: model list update after save

Timothy J. Baek 1 year ago
parent
commit
044ee2a78c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lib/components/chat/SettingsModal.svelte

+ 1 - 0
src/lib/components/chat/SettingsModal.svelte

@@ -12,6 +12,7 @@
 	const saveSettings = async (updated) => {
 	const saveSettings = async (updated) => {
 		console.log(updated);
 		console.log(updated);
 		await settings.set({ ...$settings, ...updated });
 		await settings.set({ ...$settings, ...updated });
+		await models.set(await getModels());
 		localStorage.setItem('settings', JSON.stringify($settings));
 		localStorage.setItem('settings', JSON.stringify($settings));
 	};
 	};