forked from open-webui/open-webui
feat: rosepine custom theme
This commit is contained in:
parent
6f907784fb
commit
af6e4eb904
11 changed files with 168 additions and 39 deletions
|
@ -6,7 +6,7 @@
|
|||
import { goto } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
import { models, modelfiles, user, settings, db, chats, chatId } from '$lib/stores';
|
||||
import { models, modelfiles, user, settings, chats, chatId } from '$lib/stores';
|
||||
import { OLLAMA_API_BASE_URL } from '$lib/constants';
|
||||
|
||||
import { generateChatCompletion, generateTitle } from '$lib/apis/ollama';
|
||||
|
@ -385,7 +385,7 @@
|
|||
top_p: $settings.options.top_p ?? undefined,
|
||||
num_ctx: $settings.options.num_ctx ?? undefined,
|
||||
frequency_penalty: $settings.options.repeat_penalty ?? undefined,
|
||||
max_tokens: $settings.options.num_predict ?? undefined,
|
||||
max_tokens: $settings.options.num_predict ?? undefined
|
||||
})
|
||||
}
|
||||
).catch((err) => {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { goto } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
import { models, modelfiles, user, settings, db, chats, chatId } from '$lib/stores';
|
||||
import { models, modelfiles, user, settings, chats, chatId } from '$lib/stores';
|
||||
import { OLLAMA_API_BASE_URL } from '$lib/constants';
|
||||
|
||||
import { generateChatCompletion, generateTitle } from '$lib/apis/ollama';
|
||||
|
@ -412,7 +412,7 @@
|
|||
top_p: $settings.options.top_p ?? undefined,
|
||||
num_ctx: $settings.options.num_ctx ?? undefined,
|
||||
frequency_penalty: $settings.options.repeat_penalty ?? undefined,
|
||||
max_tokens: $settings.options.num_predict ?? undefined,
|
||||
max_tokens: $settings.options.num_predict ?? undefined
|
||||
})
|
||||
}
|
||||
).catch((err) => {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import { toast } from 'svelte-french-toast';
|
||||
import { goto } from '$app/navigation';
|
||||
import { OLLAMA_API_BASE_URL } from '$lib/constants';
|
||||
import { settings, db, user, config, modelfiles, models } from '$lib/stores';
|
||||
import { settings, user, config, modelfiles, models } from '$lib/stores';
|
||||
|
||||
import Advanced from '$lib/components/chat/Settings/Advanced.svelte';
|
||||
import { splitStream } from '$lib/utils';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { onMount } from 'svelte';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
import { settings, db, user, config, modelfiles } from '$lib/stores';
|
||||
import { settings, user, config, modelfiles } from '$lib/stores';
|
||||
|
||||
import { OLLAMA_API_BASE_URL } from '$lib/constants';
|
||||
import { splitStream } from '$lib/utils';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { onMount, tick } from 'svelte';
|
||||
import { config, user } from '$lib/stores';
|
||||
import { config, user, theme } from '$lib/stores';
|
||||
import { goto } from '$app/navigation';
|
||||
import toast, { Toaster } from 'svelte-french-toast';
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
|||
let loaded = false;
|
||||
|
||||
onMount(async () => {
|
||||
theme.set(localStorage.theme);
|
||||
// Check Backend Status
|
||||
const backendConfig = await getBackendConfig();
|
||||
|
||||
|
@ -54,6 +55,8 @@
|
|||
|
||||
<svelte:head>
|
||||
<title>Ollama</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/themes/rosepine.css" />
|
||||
</svelte:head>
|
||||
|
||||
{#if loaded}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue