{$i18n.t('Models')} | {$WEBUI_NAME} { deleteModelHandler(selectedModel); }} />
{$i18n.t('Models')}
{filteredModels.length}
{$i18n.t('Create a model')}
{$i18n.t('Customize models for a specific purpose')}
{#each filteredModels as model}
modelfile profile
{model.name}
{!!model?.info?.meta?.description ? model?.info?.meta?.description : model?.ollama?.digest ? `${model.id} (${model?.ollama?.digest})` : model.id}
{#if shiftKey} {:else} { shareModelHandler(model); }} cloneHandler={() => { cloneModelHandler(model); }} exportHandler={() => { exportModelHandler(model); }} moveToTopHandler={() => { moveToTopHandler(model); }} hideHandler={() => { hideModelHandler(model); }} deleteHandler={() => { selectedModel = model; showModelDeleteConfirm = true; }} onClose={() => {}} > {/if}
{/each}
{ console.log(importFiles); let reader = new FileReader(); reader.onload = async (event) => { let savedModels = JSON.parse(event.target.result); console.log(savedModels); for (const model of savedModels) { if (model?.info ?? false) { if ($models.find((m) => m.id === model.id)) { await updateModelById(localStorage.token, model.id, model.info).catch((error) => { return null; }); } else { await addNewModel(localStorage.token, model.info).catch((error) => { return null; }); } } } await models.set(await getModels(localStorage.token)); _models = $models; }; reader.readAsText(importFiles[0]); }} />
{#if localModelfiles.length > 0}
{localModelfiles.length} Local Modelfiles Detected
{/if}
{#if $config?.features.enable_community_sharing} {/if}