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

external ollama server support added

parent 7cc79f01
...@@ -13,6 +13,7 @@ ChatGPT-Style Web Interface for Ollama 🦙 ...@@ -13,6 +13,7 @@ ChatGPT-Style Web Interface for Ollama 🦙
- 🤖 **Multiple Model Support**: Seamlessly switch between different chat models for diverse interactions. - 🤖 **Multiple Model Support**: Seamlessly switch between different chat models for diverse interactions.
- 📜 **Chat History**: Effortlessly access and manage your conversation history. - 📜 **Chat History**: Effortlessly access and manage your conversation history.
- 💻 **Code Syntax Highlighting**: Enjoy enhanced code readability with our syntax highlighting feature. - 💻 **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. - 🌟 **Continuous Updates**: We are committed to improving Ollama Web UI with regular updates and new features.
## How to Install 🚀 ## How to Install 🚀
......
...@@ -19,6 +19,7 @@ export const load: PageServerLoad = async ({ url }) => { ...@@ -19,6 +19,7 @@ export const load: PageServerLoad = async ({ url }) => {
}); });
return { return {
models: models?.models ?? [] models: models?.models ?? [],
ENDPOINT: ENDPOINT
}; };
}; };
...@@ -8,13 +8,12 @@ ...@@ -8,13 +8,12 @@
import 'highlight.js/styles/dark.min.css'; import 'highlight.js/styles/dark.min.css';
import type { PageData } from './$types'; import type { PageData } from './$types';
import { ENDPOINT } from '$lib/contants';
import { onMount, tick } from 'svelte'; import { onMount, tick } from 'svelte';
import { openDB, deleteDB } from 'idb'; import { openDB, deleteDB } from 'idb';
export let data: PageData; export let data: PageData;
$: ({ models } = data); $: ({ models, ENDPOINT } = data);
let textareaElement; let textareaElement;
let db; 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