refac: lazy load prompts/tools/functions/tags

This commit is contained in:
Timothy Jaeryang Baek committed 2024-11-12 15:31:11 -08:00
1 parent fb464800e4
commit f10d0df490
8 files changed
+256 -162

No files matched your search

-15
View File
@@ -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));
})()
]);