refac: lazy load prompts/tools/functions/tags
This commit is contained in:
1 parent
fb464800e4
commit
f10d0df490
8 files changed
+256
-162
No files matched your search
@@ -101,23 +101,8 @@
|
||||
(async () => {
|
||||
models.set(await getModels());
|
||||
})(),
|
||||
(async () => {
|
||||
prompts.set(await getPrompts(localStorage.token));
|
||||
})(),
|
||||
(async () => {
|
||||
knowledge.set(await getKnowledgeItems(localStorage.token));
|
||||
})(),
|
||||
(async () => {
|
||||
tools.set(await getTools(localStorage.token));
|
||||
})(),
|
||||
(async () => {
|
||||
functions.set(await getFunctions(localStorage.token));
|
||||
})(),
|
||||
(async () => {
|
||||
banners.set(await getBanners(localStorage.token));
|
||||
})(),
|
||||
(async () => {
|
||||
tags.set(await getAllTags(localStorage.token));
|
||||
})()
|
||||
]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user