mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
fix-autocomplete-toggle
This commit is contained in:
parent
cd6eb9a9e2
commit
a63b447992
1 changed files with 8 additions and 8 deletions
|
|
@ -57,14 +57,6 @@
|
||||||
await config.set(await getBackendConfig());
|
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 () => {
|
const updateBanners = async () => {
|
||||||
_banners.set(await setBanners(localStorage.token, banners));
|
_banners.set(await setBanners(localStorage.token, banners));
|
||||||
};
|
};
|
||||||
|
|
@ -75,6 +67,10 @@
|
||||||
let models = null;
|
let models = null;
|
||||||
|
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
|
taskConfig = await getTaskConfig(localStorage.token);
|
||||||
|
promptSuggestions = $config?.default_prompt_suggestions ?? [];
|
||||||
|
banners = await getBanners(localStorage.token);
|
||||||
|
|
||||||
workspaceModels = await getBaseModels(localStorage.token);
|
workspaceModels = await getBaseModels(localStorage.token);
|
||||||
baseModels = await getModels(localStorage.token, null, false);
|
baseModels = await getModels(localStorage.token, null, false);
|
||||||
|
|
||||||
|
|
@ -99,6 +95,10 @@
|
||||||
|
|
||||||
console.debug('models', models);
|
console.debug('models', models);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
onMount(async () => {
|
||||||
|
await init();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if models !== null && taskConfig}
|
{#if models !== null && taskConfig}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue