fix: stop Interface settings save from overwriting the default model (#30953)

This commit is contained in:
G30
2026-09-23 23:00:41 -05:00
committed by GitHub
parent aea7d34f45
commit e67d7f9e40
@@ -42,7 +42,6 @@
let userLocation = false;
// Interface
let defaultModelId = '';
let showUsername = false;
let highContrastMode = false;
@@ -247,7 +246,6 @@
}
saveSettings({
models: [defaultModelId],
imageCompressionSize: imageCompressionSize,
fontFamily
});
@@ -387,11 +385,6 @@
imageCompressionSize = currentSettings?.imageCompressionSize ?? { width: '', height: '' };
imageCompressionInChannels = currentSettings?.imageCompressionInChannels ?? true;
defaultModelId = currentSettings?.models?.at(0) ?? '';
if ($config?.default_models) {
defaultModelId = $config.default_models.split(',')[0];
}
backgroundImageUrl = currentSettings?.backgroundImageUrl ?? null;
webSearch = currentSettings?.webSearch ?? null;