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
74a4f642
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "7fb785901e11ba207ec09d710d1b7083231075b9"
Commit
74a4f642
authored
Jun 24, 2024
by
Timothy J. Baek
Browse files
refac: valves save
parent
6bad71ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/lib/components/workspace/Functions.svelte
src/lib/components/workspace/Functions.svelte
+10
-2
src/lib/components/workspace/common/ValvesModal.svelte
src/lib/components/workspace/common/ValvesModal.svelte
+1
-0
No files found.
src/lib/components/workspace/Functions.svelte
View file @
74a4f642
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
const { saveAs } = fileSaver;
const { saveAs } = fileSaver;
import { WEBUI_NAME, functions, models } from '$lib/stores';
import { WEBUI_NAME, functions, models } from '$lib/stores';
import { onMount, getContext } from 'svelte';
import { onMount, getContext
, tick
} from 'svelte';
import { createNewPrompt, deletePromptByCommand, getPrompts } from '$lib/apis/prompts';
import { createNewPrompt, deletePromptByCommand, getPrompts } from '$lib/apis/prompts';
import { goto } from '$app/navigation';
import { goto } from '$app/navigation';
...
@@ -387,7 +387,15 @@
...
@@ -387,7 +387,15 @@
</div>
</div>
<ManifestModal bind:show={showManifestModal} manifest={selectedFunction?.meta?.manifest ?? {}} />
<ManifestModal bind:show={showManifestModal} manifest={selectedFunction?.meta?.manifest ?? {}} />
<ValvesModal bind:show={showValvesModal} type="function" id={selectedFunction?.id ?? null} />
<ValvesModal
bind:show={showValvesModal}
type="function"
id={selectedFunction?.id ?? null}
on:save={async () => {
await tick();
models.set(await getModels(localStorage.token));
}}
/>
<ConfirmDialog
<ConfirmDialog
bind:show={showConfirm}
bind:show={showConfirm}
...
...
src/lib/components/workspace/common/ValvesModal.svelte
View file @
74a4f642
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
if (res) {
if (res) {
toast.success('Valves updated successfully');
toast.success('Valves updated successfully');
dispatch('save');
}
}
}
}
...
...
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