Commit 36b3ec94 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

endpoint error fixed

parent 5d07c363
......@@ -20,6 +20,6 @@ export const load: PageServerLoad = async ({ url }) => {
return {
models: models?.models ?? [],
ENDPOINT: ENDPOINT
OLLAMA_ENDPOINT: process.env.OLLAMA_ENDPOINT
};
};
......@@ -11,9 +11,12 @@
import { onMount, tick } from 'svelte';
import { openDB, deleteDB } from 'idb';
import { ENDPOINT as SERVER_ENDPOINT } from '$lib/contants';
export let data: PageData;
$: ({ models, ENDPOINT } = data);
$: ({ models, OLLAMA_ENDPOINT } = data);
const ENDPOINT = OLLAMA_ENDPOINT ? OLLAMA_ENDPOINT : SERVER_ENDPOINT;
let textareaElement;
let db;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment