Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
dc322084
Commit
dc322084
authored
Feb 15, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
74a3900a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/lib/components/chat/Settings/Models.svelte
src/lib/components/chat/Settings/Models.svelte
+2
-2
src/routes/error/+page.svelte
src/routes/error/+page.svelte
+2
-1
No files found.
src/lib/components/chat/Settings/Models.svelte
View file @
dc322084
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import toast from 'svelte-french-toast';
import toast from 'svelte-french-toast';
import { createModel, deleteModel, pullModel } from '$lib/apis/ollama';
import { createModel, deleteModel, pullModel } from '$lib/apis/ollama';
import { WEBUI_API_BASE_URL } from '$lib/constants';
import { WEBUI_API_BASE_URL
, WEBUI_NAME
} from '$lib/constants';
import { models, user } from '$lib/stores';
import { models, user } from '$lib/stores';
import { splitStream } from '$lib/utils';
import { splitStream } from '$lib/utils';
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
} else {
} else {
toast.success(`Model '${modelName}' has been successfully downloaded.`);
toast.success(`Model '${modelName}' has been successfully downloaded.`);
const notification = new Notification(
`Ollama`
, {
const notification = new Notification(
WEBUI_NAME
, {
body: `Model '${modelName}' has been successfully downloaded.`,
body: `Model '${modelName}' has been successfully downloaded.`,
icon: '/favicon.png'
icon: '/favicon.png'
});
});
...
...
src/routes/error/+page.svelte
View file @
dc322084
<script>
<script>
import { goto } from '$app/navigation';
import { goto } from '$app/navigation';
import { WEBUI_NAME } from '$lib/constants';
import { config } from '$lib/stores';
import { config } from '$lib/stores';
import { onMount } from 'svelte';
import { onMount } from 'svelte';
...
@@ -19,7 +20,7 @@
...
@@ -19,7 +20,7 @@
<div class="absolute rounded-xl w-full h-full backdrop-blur flex justify-center">
<div class="absolute rounded-xl w-full h-full backdrop-blur flex justify-center">
<div class="m-auto pb-44 flex flex-col justify-center">
<div class="m-auto pb-44 flex flex-col justify-center">
<div class="max-w-md">
<div class="max-w-md">
<div class="text-center text-2xl font-medium z-50">
Ollama WebUI
Backend Required</div>
<div class="text-center text-2xl font-medium z-50">
{WEBUI_NAME}
Backend Required</div>
<div class=" mt-4 text-center text-sm w-full">
<div class=" mt-4 text-center text-sm w-full">
Oops! You're using an unsupported method (frontend only). Please serve the WebUI from
Oops! You're using an unsupported method (frontend only). Please serve the WebUI from
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment