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
4294ec6d
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "da782877e16313eb98a1a81e930bf15fbf995eec"
Commit
4294ec6d
authored
Nov 24, 2023
by
Timothy J. Baek
Browse files
fix: settings save issue
parent
937e38d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/lib/components/chat/MessageInput.svelte
src/lib/components/chat/MessageInput.svelte
+1
-1
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+5
-5
No files found.
src/lib/components/chat/MessageInput.svelte
View file @
4294ec6d
...
...
@@ -88,7 +88,7 @@
{#if autoScroll === false && messages.length > 0}
<div class=" flex justify-center mb-4">
<button
class=" bg-white/20 p-1.5 rounded-full"
class=" bg-white
border border-gray-100 dark:border-none dark:bg-white
/20 p-1.5 rounded-full"
on:click={() => {
autoScroll = true;
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });
...
...
src/lib/components/chat/SettingsModal.svelte
View file @
4294ec6d
<script lang="ts">
import Modal from '../common/Modal.svelte';
import { WEB_UI_VERSION, OLLAMA_API_BASE_URL
as BUILD_TIME_API_BASE_URL
} from '$lib/constants';
import { WEB_UI_VERSION, OLLAMA_API_BASE_URL } from '$lib/constants';
import toast from 'svelte-french-toast';
import { onMount } from 'svelte';
import { config, models, settings, user } from '$lib/stores';
...
...
@@ -19,7 +19,7 @@
let selectedTab = 'general';
// General
let API_BASE_URL =
BUILD_TIME
_API_BASE_URL;
let API_BASE_URL =
OLLAMA
_API_BASE_URL;
let theme = 'dark';
let system = '';
...
...
@@ -50,7 +50,7 @@
const checkOllamaConnection = async () => {
if (API_BASE_URL === '') {
API_BASE_URL =
BUILD_TIME
_API_BASE_URL;
API_BASE_URL =
OLLAMA
_API_BASE_URL;
}
const _models = await getModels(API_BASE_URL, 'ollama');
...
...
@@ -222,7 +222,7 @@
console.log(settings);
theme = localStorage.theme ?? 'dark';
API_BASE_URL = settings.API_BASE_URL ??
BUILD_TIME
_API_BASE_URL;
API_BASE_URL = settings.API_BASE_URL ??
OLLAMA
_API_BASE_URL;
system = settings.system ?? '';
requestFormat = settings.requestFormat ?? '';
...
...
@@ -599,7 +599,7 @@
class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded"
on:click={() => {
saveSettings({
API_BASE_URL: API_BASE_URL === '' ?
BUILD_TIME
_API_BASE_URL : API_BASE_URL,
API_BASE_URL: API_BASE_URL === '' ?
OLLAMA
_API_BASE_URL : API_BASE_URL,
system: system !== '' ? system : undefined
});
show = false;
...
...
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