ui : skip hub base model lookups for external backends

Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
This commit is contained in:
Aleksander Grygier
2026-09-16 19:22:47 +02:00
parent ff7672a7aa
commit 1ac87653b9
@@ -18,6 +18,8 @@
import { modelsStore } from '$lib/stores';
import type { ModelOption } from '$lib/types/models';
import { modelLoadFraction, modelLoadProgressText, orgOf } from '$lib/utils';
import { getBackend } from '$lib/utils/api-base';
import { getBackendCapabilities } from '$lib/utils/backend';
interface Props {
option: ModelOption;
@@ -84,6 +86,13 @@
if (!showBaseModelAvatar || !orgName || tagBaseModel) return;
// external provider ids (`~openai/gpt-...`, `deepseek/deepseek-chat`) are
// not HF repos; their org is already the provider slug, so the base model
// lookup would be a missed request for every row
const backend = getBackend(option.backendId);
if (backend && !getBackendCapabilities(backend).props) return;
let cancelled = false;
void HuggingFaceService.getBaseModel(option.model)