@@ -60,7 +23,11 @@ export const ModelsBody = () => {
@@ -88,28 +55,7 @@ export const ModelsBody = () => {
{segmented === "ollama" ?
:
}
-
setOpen(false)}>
-
-
+
)
}
diff --git a/src/db/models.ts b/src/db/models.ts
index e985472..c9d294d 100644
--- a/src/db/models.ts
+++ b/src/db/models.ts
@@ -10,6 +10,7 @@ type Model = {
name: string
provider_id: string
lookup: string
+ model_type: string
db_type: string
}
export const generateID = () => {
@@ -140,7 +141,8 @@ export const createManyModels = async (
lookup: `${item.model_id}_${item.provider_id}`,
id: `${item.model_id}_${generateID()}`,
db_type: "openai_model",
- name: item.name.replaceAll(/accounts\/[^\/]+\/models\//g, "")
+ name: item.name.replaceAll(/accounts\/[^\/]+\/models\//g, ""),
+ model_type: "chat"
}
})
@@ -168,7 +170,8 @@ export const createModel = async (
name,
provider_id,
lookup: `${model_id}_${provider_id}`,
- db_type: "openai_model"
+ db_type: "openai_model",
+ model_type: "chat"
}
await db.create(model)
return model
diff --git a/src/i18n/index.ts b/src/i18n/index.ts
index 4b3826a..6ee62a9 100644
--- a/src/i18n/index.ts
+++ b/src/i18n/index.ts
@@ -41,11 +41,6 @@ i18n
de: de
},
fallbackLng: "en",
- detection: {
- order: ['localStorage', 'navigator'],
- caches: ['localStorage']
- },
- supportedLngs: supportedLanguages,
lng: localStorage.getItem("i18nextLng") || "en",
});