mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-14 04:08:46 +00:00
refac
This commit is contained in:
parent
0309c9ad13
commit
2eb77fc27f
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<script lang="ts">
|
||||
import ModelSettingsLabel from '$lib/components/workspace/Models/ModelSettingsLabel.svelte';
|
||||
import { getContext, tick } from 'svelte';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
// @ts-expect-error The existing SortableJS dependency does not ship declarations.
|
||||
import Sortable from 'sortablejs';
|
||||
import type { ModelControl } from '$lib/apis';
|
||||
|
|
@ -41,7 +42,7 @@
|
|||
};
|
||||
const focus = (node: HTMLInputElement) => node.focus();
|
||||
const addOption = () => {
|
||||
options = [...options, { id: crypto.randomUUID(), label: '', params: { '': '' } }];
|
||||
options = [...options, { id: uuidv4(), label: '', params: { '': '' } }];
|
||||
};
|
||||
const edit = async (key = '') => {
|
||||
editingKey = key;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue