mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-27 09:46:07 -04:00
fix: stop Interface settings save from overwriting the default model (#30953)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user