diff --git a/apps/host/src/components/FamilySwitch.tsx b/apps/host/src/components/FamilySwitch.tsx new file mode 100644 index 00000000..27d55f59 --- /dev/null +++ b/apps/host/src/components/FamilySwitch.tsx @@ -0,0 +1,12 @@ +import { tr } from '../lib/i18n'; +import type { CatalogModel } from '../lib/native-catalog'; + +/** The model families of the catalog as a switch in the navbar (Qwen3.8-Flash-Next, Qwen3.6-35B-A3B). A single family is just its name. */ +export function FamilySwitch({ families, selected, onPick }: { families: CatalogModel[]; selected?: string; onPick: (family: CatalogModel) => void }) { + const shown = families.filter(f => f.sizes.length); + if (shown.length < 2) return shown[0] ? {tr(shown[0].title)} : null; + return
{tr("Update your engine or import a local GGUF for this model.")}
{tr("Connect your local installation to choose an optimized model.")}
{tr(native.error)}
: null)}{tr(selectedSize.about)}
+ {tr(selectedSize ? <> +{tr("How much your model can keep in mind.")}
{tr("Automatic uses the installation\u2019s GPU placement. Choose a GPU, or split this model across several GPUs.")}
{tr("Showing the values of your tuning '{0}'.", [tunedNow.name])}
: null)}{tr("Automatic uses the installation\u2019s GPU placement. Choose a GPU, or split this model across several GPUs.")}