mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 13:29:53 +00:00
endpoint error fixed
This commit is contained in:
parent
5d07c3634b
commit
36b3ec9474
@ -20,6 +20,6 @@ export const load: PageServerLoad = async ({ url }) => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
models: models?.models ?? [],
|
models: models?.models ?? [],
|
||||||
ENDPOINT: ENDPOINT
|
OLLAMA_ENDPOINT: process.env.OLLAMA_ENDPOINT
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -11,9 +11,12 @@
|
|||||||
import { onMount, tick } from 'svelte';
|
import { onMount, tick } from 'svelte';
|
||||||
|
|
||||||
import { openDB, deleteDB } from 'idb';
|
import { openDB, deleteDB } from 'idb';
|
||||||
|
import { ENDPOINT as SERVER_ENDPOINT } from '$lib/contants';
|
||||||
|
|
||||||
export let data: PageData;
|
export let data: PageData;
|
||||||
$: ({ models, ENDPOINT } = data);
|
$: ({ models, OLLAMA_ENDPOINT } = data);
|
||||||
|
|
||||||
|
const ENDPOINT = OLLAMA_ENDPOINT ? OLLAMA_ENDPOINT : SERVER_ENDPOINT;
|
||||||
let textareaElement;
|
let textareaElement;
|
||||||
let db;
|
let db;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user