From 42251c232ac214515a9dd92d7db3152b28426e38 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 25 Feb 2024 16:09:05 -0800 Subject: [PATCH] fix: default model load issue --- src/routes/(app)/+layout.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index ede00a1d..ceee2209 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -63,9 +63,6 @@ .filter((models) => models) .reduce((a, e, i, arr) => a.concat(e, ...(i < arr.length - 1 ? [{ name: 'hr' }] : [])), []); - // models.push(...(ollamaModels ? [{ name: 'hr' }, ...ollamaModels] : [])); - // models.push(...(openAIModels ? [{ name: 'hr' }, ...openAIModels] : [])); - // models.push(...(liteLLMModels ? [{ name: 'hr' }, ...liteLLMModels] : [])); return models; }; @@ -110,6 +107,10 @@ } console.log(); + + await models.set(await getModels()); + await tick(); + await settings.set(JSON.parse(localStorage.getItem('settings') ?? '{}')); await modelfiles.set(await getModelfiles(localStorage.token));