mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-08 03:08:02 +00:00
refac
This commit is contained in:
parent
35763a352c
commit
723185c22f
2 changed files with 7 additions and 2 deletions
|
|
@ -681,7 +681,8 @@
|
|||
}
|
||||
|
||||
toast.success($i18n.t('Functions imported successfully'));
|
||||
functions.set(await getFunctions(localStorage.token));
|
||||
functions = await getFunctionList(localStorage.token);
|
||||
_functions.set(await getFunctions(localStorage.token));
|
||||
models.set(
|
||||
await getModels(
|
||||
localStorage.token,
|
||||
|
|
@ -690,6 +691,8 @@
|
|||
true
|
||||
)
|
||||
);
|
||||
importFiles = null;
|
||||
functionsImportInputElement.value = '';
|
||||
};
|
||||
|
||||
reader.readAsText(importFiles[0]);
|
||||
|
|
|
|||
|
|
@ -615,7 +615,9 @@
|
|||
}
|
||||
|
||||
toast.success($i18n.t('Tool imported successfully'));
|
||||
tools.set(await getTools(localStorage.token));
|
||||
await init();
|
||||
importFiles = null;
|
||||
toolsImportInputElement.value = '';
|
||||
};
|
||||
|
||||
reader.readAsText(importFiles[0]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue