diff --git a/src/hooks.server.ts b/src/hooks.server.ts index e3434313842..d04eef235d2 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -16,6 +16,7 @@ import { initExitHandler } from "$lib/server/exitHandler"; import { ObjectId } from "mongodb"; import { refreshAssistantsCounts } from "$lib/jobs/refresh-assistants-counts"; import { refreshConversationStats } from "$lib/jobs/refresh-conversation-stats"; +import { populateModelConfig } from "$lib/server/models"; // TODO: move this code on a started server hook, instead of using a "building" flag if (!building) { @@ -26,6 +27,9 @@ if (!building) { if (env.ENABLE_ASSISTANTS) { refreshAssistantsCounts(); } + + await populateModelConfig(); + refreshConversationStats(); // Init metrics server diff --git a/src/lib/components/ExpandNavigation.svelte b/src/lib/components/ExpandNavigation.svelte index dc2d5ed1e17..cda0207c576 100644 --- a/src/lib/components/ExpandNavigation.svelte +++ b/src/lib/components/ExpandNavigation.svelte @@ -5,7 +5,7 @@ diff --git a/src/lib/components/Pagination.svelte b/src/lib/components/Pagination.svelte index 7e86734130d..d3b0333dab4 100644 --- a/src/lib/components/Pagination.svelte +++ b/src/lib/components/Pagination.svelte @@ -57,7 +57,7 @@ {#if numTotalPages > 1}