char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Pascalui: read persisted settings before the API key probe (#27365)77acca437

char/aliceai-t5-moe
382 B10 linesraw
1import type { PageLoad } from './$types';
2import { initStores } from '$lib/stores/init';
3import { validateApiKey } from '$lib/utils';
4
5export const load: PageLoad = async ({ fetch }) => {
6	// loads run before the root layout script, so the stored API key reaches
7	// the probe only once the settings store has read localStorage
8	await initStores();
9	await validateApiKey(fetch);
10};