diff --git a/README.md b/README.md index 585da317a..3eca3e247 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ ChatGPT-Style Web Interface for Ollama 🦙 - 🤖 **Multiple Model Support**: Seamlessly switch between different chat models for diverse interactions. - 📜 **Chat History**: Effortlessly access and manage your conversation history. - 💻 **Code Syntax Highlighting**: Enjoy enhanced code readability with our syntax highlighting feature. +- 🔗 **External Server Connection**: Link to the model when Ollama is hosted on a different server via the environment variable -e OLLAMA_ENDPOINT="http://[insert your Ollama address]". - 🌟 **Continuous Updates**: We are committed to improving Ollama Web UI with regular updates and new features. ## How to Install 🚀 diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 6f16aa466..d416524cc 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -19,6 +19,7 @@ export const load: PageServerLoad = async ({ url }) => { }); return { - models: models?.models ?? [] + models: models?.models ?? [], + ENDPOINT: ENDPOINT }; }; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5f68aad16..c061054c3 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -8,13 +8,12 @@ import 'highlight.js/styles/dark.min.css'; import type { PageData } from './$types'; - import { ENDPOINT } from '$lib/contants'; import { onMount, tick } from 'svelte'; import { openDB, deleteDB } from 'idb'; export let data: PageData; - $: ({ models } = data); + $: ({ models, ENDPOINT } = data); let textareaElement; let db;