This commit is contained in:
Timothy J. Baek committed 2024-05-24 02:17:48 -07:00
1 parent 404875cab9
commit e80e4c304a
14 files changed
+49 -60

No files matched your search

+4 -4
View File
@@ -7,7 +7,7 @@
import { goto } from '$app/navigation';
import { getAllModels as _getAllModels } from '$lib/utils';
import { getModels as _getModels } from '$lib/apis';
import { getOllamaVersion } from '$lib/apis/ollama';
import { getPrompts } from '$lib/apis/prompts';
@@ -45,8 +45,8 @@
let showShortcuts = false;
const getAllModels = async () => {
return _getAllModels(localStorage.token);
const getModels = async () => {
return _getModels(localStorage.token);
};
onMount(async () => {
@@ -75,7 +75,7 @@
await Promise.all([
(async () => {
models.set(await getAllModels());
models.set(await getModels());
})(),
(async () => {
prompts.set(await getPrompts(localStorage.token));