mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Merge pull request #16117 from silentoplayz/fix-autocomplete-toggle
fix: "Autocomplete Generation" toggle would appear enabled breifly, even when disabled
This commit is contained in:
commit
fd9b6d1193
1 changed files with 8 additions and 8 deletions
|
|
@ -57,14 +57,6 @@
|
|||
await config.set(await getBackendConfig());
|
||||
};
|
||||
|
||||
onMount(async () => {
|
||||
await init();
|
||||
taskConfig = await getTaskConfig(localStorage.token);
|
||||
|
||||
promptSuggestions = $config?.default_prompt_suggestions ?? [];
|
||||
banners = await getBanners(localStorage.token);
|
||||
});
|
||||
|
||||
const updateBanners = async () => {
|
||||
_banners.set(await setBanners(localStorage.token, banners));
|
||||
};
|
||||
|
|
@ -75,6 +67,10 @@
|
|||
let models = null;
|
||||
|
||||
const init = async () => {
|
||||
taskConfig = await getTaskConfig(localStorage.token);
|
||||
promptSuggestions = $config?.default_prompt_suggestions ?? [];
|
||||
banners = await getBanners(localStorage.token);
|
||||
|
||||
workspaceModels = await getBaseModels(localStorage.token);
|
||||
baseModels = await getModels(localStorage.token, null, false);
|
||||
|
||||
|
|
@ -99,6 +95,10 @@
|
|||
|
||||
console.debug('models', models);
|
||||
};
|
||||
|
||||
onMount(async () => {
|
||||
await init();
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if models !== null && taskConfig}
|
||||
|
|
|
|||
Loading…
Reference in a new issue