Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(llm): remove the legacy badge from the model editing modal
Elian Dorana1e1d6377c74
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 5c8852215a..20bdd3e311 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -2155,7 +2155,6 @@"sources": "Sources","sources_summary": "{{count}} sources from {{sites}} sites","extended_thinking": "Extended thinking",- "legacy_models": "Legacy models","model_cost_included": "Subscription","no_models_selected": "No models selected — click the pencil to choose","edit_models": "Edit models",diff --git a/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.css b/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.cssindex 11caf93d39..cdc8e832ea 100644--- a/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.css+++ b/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.css@@ -39,7 +39,3 @@.model-selection-cost {color: var(--muted-text-color);}--.model-selection-legacy-badge {- --color: var(--muted-text-color);-}diff --git a/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.tsx b/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.tsxindex 2de035077e..9ab33c9c0e 100644--- a/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.tsx+++ b/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.tsx@@ -5,7 +5,6 @@ import { useCallback, useEffect, useState } from "preact/hooks";import { t } from "../../../../services/i18n";import { fetchProviderModels, type ProviderModelsQuery } from "../../../../services/llm_chat";-import { Badge } from "../../../react/Badge";import FormCheckbox from "../../../react/FormCheckbox";import NoItems from "../../../react/NoItems";@@ -115,7 +114,7 @@ function defaultSelectedModels(models: LlmModelInfo[]): LlmModelInfo[] {return models.filter(model => model.recommended);}-/** Row label: model name plus curated hints (cost, legacy) when available. */+/** Row label: model name plus curated cost hint when available. */function ModelLabel({ model }: { model: LlmModelInfo }) {const cost = model.isSubscription? t("llm_chat.model_cost_included")@@ -124,7 +123,6 @@ function ModelLabel({ model }: { model: LlmModelInfo }) {<span className="model-selection-label"><span className="model-selection-name">{model.name}</span>{cost && <small className="model-selection-cost">({cost})</small>}- {model.isLegacy && <Badge text={t("llm_chat.legacy_models")} className="model-selection-legacy-badge" outline />}</span>);}