Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix(hub): annotate filteredModels map as CatalogModel[]

Akarshan Biswas1d02eb4ec3a7
diff --git a/web-app/src/routes/hub/index.tsx b/web-app/src/routes/hub/index.tsx
index 5bf55831e..df30de77b 100644
--- a/web-app/src/routes/hub/index.tsx
+++ b/web-app/src/routes/hub/index.tsx
@@ -193,7 +193,7 @@ function HubContent() {
// MTP companion ggufs are draft models, not standalone variants — move them
// out of `quants` (so they don't show as downloadable) into `mtpQuants`,
// where DownloadButton resolves them against the chosen quant.
- let filtered = sortedModels.map((model) => ({
+ let filtered: CatalogModel[] = sortedModels.map((model) => ({
...model,
quants: model.quants?.filter((q) => !isMtpQuant(q)),
mtpQuants: model.quants?.filter((q) => isMtpQuant(q)),