refac: migrated to pyodide from pyscript

This commit is contained in:
Timothy J. Baek
2024-05-16 19:21:08 -10:00
parent 0a9092156c
commit 8f8ce26948
60 changed files with 273 additions and 255 deletions
+6 -6
View File
@@ -6,15 +6,15 @@ import { getLiteLLMModels } from '$lib/apis/litellm';
export const getModels = async (token: string) => {
let models = await Promise.all([
await getOllamaModels(token).catch((error) => {
getOllamaModels(token).catch((error) => {
console.log(error);
return null;
}),
await getOpenAIModels(token).catch((error) => {
console.log(error);
return null;
}),
await getLiteLLMModels(token).catch((error) => {
// getOpenAIModels(token).catch((error) => {
// console.log(error);
// return null;
// }),
getLiteLLMModels(token).catch((error) => {
console.log(error);
return null;
})