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
6c70d0f7
Unverified
Commit
6c70d0f7
authored
Mar 02, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Mar 02, 2024
Browse files
Merge pull request #996 from open-webui/dev
0.1.107
parents
5745b9c5
96e2ee48
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
src/routes/+layout.svelte
src/routes/+layout.svelte
+2
-2
src/routes/auth/+page.svelte
src/routes/auth/+page.svelte
+11
-5
update_ollama_models.sh
update_ollama_models.sh
+10
-0
No files found.
src/routes/+layout.svelte
View file @
6c70d0f7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import { onMount, tick } from 'svelte';
import { onMount, tick } from 'svelte';
import { config, user, theme, WEBUI_NAME } from '$lib/stores';
import { config, user, theme, WEBUI_NAME } from '$lib/stores';
import { goto } from '$app/navigation';
import { goto } from '$app/navigation';
import
t
oast
, { T
oast
er
} from 'svelte-
french-toast
';
import
{ T
oast
er, t
oast } from 'svelte-
sonner
';
import { getBackendConfig } from '$lib/apis';
import { getBackendConfig } from '$lib/apis';
import { getSessionUser } from '$lib/apis/auths';
import { getSessionUser } from '$lib/apis/auths';
...
@@ -68,4 +68,4 @@
...
@@ -68,4 +68,4 @@
<slot />
<slot />
{/if}
{/if}
<Toaster />
<Toaster
richColors position="top-center"
/>
src/routes/auth/+page.svelte
View file @
6c70d0f7
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
import { WEBUI_NAME, config, user } from '$lib/stores';
import { WEBUI_NAME, config, user } from '$lib/stores';
import { onMount } from 'svelte';
import { onMount } from 'svelte';
import toast from 'svelte-
french-toast
';
import
{
toast
}
from 'svelte-
sonner
';
let loaded = false;
let loaded = false;
let mode = 'signin';
let mode = 'signin';
...
@@ -57,6 +57,12 @@
...
@@ -57,6 +57,12 @@
});
});
</script>
</script>
<svelte:head>
<title>
{`${$WEBUI_NAME}`}
</title>
</svelte:head>
{#if loaded}
{#if loaded}
<div class="fixed m-10 z-50">
<div class="fixed m-10 z-50">
<div class="flex space-x-2">
<div class="flex space-x-2">
...
@@ -66,7 +72,7 @@
...
@@ -66,7 +72,7 @@
</div>
</div>
</div>
</div>
<div class=" bg-white min-h-screen w-full flex justify-center font-mona">
<div class=" bg-white
dark:bg-gray-900
min-h-screen w-full flex justify-center font-mona">
<!-- <div class="hidden lg:flex lg:flex-1 px-10 md:px-16 w-full bg-yellow-50 justify-center">
<!-- <div class="hidden lg:flex lg:flex-1 px-10 md:px-16 w-full bg-yellow-50 justify-center">
<div class=" my-auto pb-16 text-left">
<div class=" my-auto pb-16 text-left">
<div>
<div>
...
@@ -81,15 +87,15 @@
...
@@ -81,15 +87,15 @@
</div>
</div>
</div> -->
</div> -->
<div class="w-full max-w-lg px-
10 md:px-16 bg-white
min-h-screen flex flex-col">
<div class="w-full
sm:
max-w-lg px-
4
min-h-screen flex flex-col">
<div class=" my-auto pb-10 w-full">
<div class=" my-auto pb-10 w-full">
<form
<form
class=" flex flex-col justify-center"
class=" flex flex-col justify-center
bg-white py-6 sm:py-16 px-6 sm:px-16 rounded-2xl
"
on:submit|preventDefault={() => {
on:submit|preventDefault={() => {
submitHandler();
submitHandler();
}}
}}
>
>
<div class=" text-xl m
d
:text-2xl font-bold">
<div class=" text-xl
s
m:text-2xl font-bold">
{mode === 'signin' ? 'Sign in' : 'Sign up'} to {$WEBUI_NAME}
{mode === 'signin' ? 'Sign in' : 'Sign up'} to {$WEBUI_NAME}
</div>
</div>
...
...
update_ollama_models.sh
0 → 100644
View file @
6c70d0f7
#!/bin/bash
# update_llm.sh
# Retrieves the list of LLMs installed in the Docker container
llm_list
=
$(
docker
exec
ollama ollama list |
tail
-n
+2 |
awk
'{print $1}'
)
# Loop over each LLM to update it
for
llm
in
$llm_list
;
do
docker
exec
ollama ollama pull
$llm
done
Prev
1
2
3
Next
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