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

Update +page.svelte

parent 36b3ec94
......@@ -12,11 +12,12 @@
import { openDB, deleteDB } from 'idb';
import { ENDPOINT as SERVER_ENDPOINT } from '$lib/contants';
import Error from './+error.svelte';
export let data: PageData;
$: ({ models, OLLAMA_ENDPOINT } = data);
const ENDPOINT = OLLAMA_ENDPOINT ? OLLAMA_ENDPOINT : SERVER_ENDPOINT;
let ENDPOINT;
let textareaElement;
let db;
......@@ -31,6 +32,11 @@
let messages = [];
onMount(async () => {
ENDPOINT = OLLAMA_ENDPOINT ? OLLAMA_ENDPOINT : SERVER_ENDPOINT;
console.log(OLLAMA_ENDPOINT);
console.log(SERVER_ENDPOINT);
console.log(ENDPOINT);
let settings = localStorage.getItem('settings');
if (settings) {
settings = JSON.parse(settings);
......
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